-
Notifications
You must be signed in to change notification settings - Fork 10
Description
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’ for #<User:0x0000010c845a78> from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activemodel/lib/active_model/attribute_methods.rb:358:in
method_missing’
from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/active_record/attribute_methods.rb:45:in method_missing’ from ~/.rvm/gems/ruby-head/gems/encrypted_attributes-0.4.1/lib/encrypted_attributes.rb:165:in
write_encrypted_attribute’
from ~/.rvm/gems/ruby-head/gems/encrypted_attributes-0.4.1/lib/encrypted_attributes.rb:133:in block (2 levels) in encrypts’ 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?’ from (irb):4 from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands/console.rb:47:in
start’
from ~/.rvm/gems/ruby-head/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands/console.rb:8:in start’ 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’ from script/rails:9:in
@@@
This ticket has 0 attachment(s).