stephencelis/acts_as_singleton — Issue #7: This gem doesn't play fine with rails 3.2
Author: marsupilami
Created: 2012-01-30 16:04:05+00:00
State: open

When invoking ::instance

ArgumentError: wrong number of arguments (2 for 1)
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/relation.rb:170:in `find_by_sql'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/relation.rb:170:in `exec_queries'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/relation.rb:159:in `to_a'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/explain.rb:40:in `logging_query_plan'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/relation.rb:158:in `to_a'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/relation/finder_methods.rb:377:in `find_first'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/relation/finder_methods.rb:122:in `first'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/querying.rb:5:in `__send__'
from /.rvm/gems/ruby-1.8.7-p357/gems/activerecord-3.2.1/lib/active_record/querying.rb:5:in `first'
from /.rvm/gems/ruby-1.8.7-p357/gems/acts_as_singleton-0.0.5/lib/acts_as_singleton.rb:43:in `instance'