Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 4 wrong number of arguments when calling .all on record #66

Open
rchekaluk opened this issue Feb 23, 2014 · 1 comment
Open

Rails 4 wrong number of arguments when calling .all on record #66

rchekaluk opened this issue Feb 23, 2014 · 1 comment

Comments

@rchekaluk
Copy link

Reference http://stackoverflow.com/questions/18553013/wrong-number-of-arguments-when-calling-all-on-record-which-has-enum-attr

$ rake db:seed
rake aborted!
wrong number of arguments (2 for 1)
REDACT/enumerated_attribute/lib/enumerated_attribute/integrations/active_record.rb:74:in `instantiate'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/querying.rb:45:in `block in find_by_sql'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/result.rb:21:in `block in each'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/result.rb:21:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/result.rb:21:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/querying.rb:45:in `map'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/querying.rb:45:in `find_by_sql'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/relation.rb:585:in `exec_queries'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/relation.rb:471:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/relation.rb:220:in `to_a'
REDACT/db/seeds.rb:17:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `block in load'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `load'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.3/lib/rails/engine.rb:540:in `load_seed'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/tasks/database_tasks.rb:154:in `load_seed'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/activerecord-4.0.3/lib/active_record/railties/databases.rake:181:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
@rchekaluk
Copy link
Author

rchekaluk pushed a commit to rchekaluk/enumerated_attribute that referenced this issue Feb 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant