Skip to content

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

@obrie

Description

@obrie

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions