主要文档在调试回调时对其进行了描述,但似乎不存在:
http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html
我尝试像示例一样使用它,它返回给我:
ruby-1.8.7-p330 :026 > Device.after_save_callback_chain
NoMethodError: undefined method `after_save_callback_chain' for #<Class:0x104bc1060>
from /rvm/gems/ruby-1.8.7-p330/gems/activerecord-3.0.5/lib/active_record/base.rb:1008:in `method_missing'
from (irb):26