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

Undefined method 'callback' in Rails 3 beta 3 #3

Open
obrie opened this issue Aug 6, 2011 · 1 comment
Open

Undefined method 'callback' in Rails 3 beta 3 #3

obrie opened this issue Aug 6, 2011 · 1 comment
Assignees

Comments

@obrie
Copy link
Member

obrie commented Aug 6, 2011

Igor Pstyga opened this issue

Hello,

I catched following exception in Rails 3 env:

@@@
ruby-head > user = User.new(:attr1 => "000000010010")
ruby-head > user.attr1
=> "000000010010"
ruby-head > user.valid?
NoMethodError: undefined method callback&rsquo; for #<User:0x0000010c845a78> from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activemodel/lib/active_model/attribute_methods.rb:358:inmethod_missing’
from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/attribute_methods.rb:45:in method_missing&rsquo; from ~/.rvm/gems/ruby-head/gems/encrypted_attributes-0.4.1/lib/encrypted_attributes.rb:165:inwrite_encrypted_attribute’
from ~/.rvm/gems/ruby-head/gems/encrypted_attributes-0.4.1/lib/encrypted_attributes.rb:133:in block (2 levels) in encrypts&rsquo; from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/callbacks.rb:409:in_run_validation_callbacks’
from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/callbacks.rb:274:in valid?&rsquo; from (irb):4 from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands/console.rb:47:instart’
from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands/console.rb:8:in start&rsquo; from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:23:in<top (required)>’
from script/rails:9:in require&rsquo; from script/rails:9:in


@@@

original LH ticket

This ticket has 0 attachment(s).

@obrie
Copy link
Member Author

obrie commented Aug 6, 2011

Igor Pstyga commented

FYI, strangely enough, but the replacing method "callback" to "run_callbacks" working fine under Rails 3.

@ghost ghost assigned obrie Aug 6, 2011
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