The implementation of this method is taken from the Rails 1.2.6 source, from rails/activerecord/lib/active_record/callbacks.rb, line 192.
# File lib/dm-paperclip/callback_compatability.rb, line 13 def define_callbacks(*args) args.each do |method| self.class_eval def self.#{method}(*callbacks, &block) callbacks << block if block_given? write_inheritable_array(#{method.to_sym.inspect}, callbacks) end end end
Generated with the Darkfish Rdoc Generator 2.