Skip to content

Instantly share code, notes, and snippets.

I’ve installed daemon_generator to my app running a fairly recent edge rails. It works fine until I try to use ActiveRecord in the daemon:
while($running) do pp User.all sleep 10 end
$ lib/daemons/twitterusers_ctl run /home/logankoester/projects/paul/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:212:in `log’: NoMethodError: undefined method `ms’ for Benchmark:Module: SELECT * FROM “users” (ActiveRecord::StatementInvalid) from /home/logankoester/projects/paul/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in `execute’ from /home/logankoester/projects/paul/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:372:in `catch_schema_changes’ from /home/logankoester/projects/paul/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in `execute’ from /home/logankoester/projects/paul/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:275:in `sel