Module | Paperclip::CallbackCompatability::ClassMethods
In: | vendor/plugins/paperclip/lib/paperclip/callback_compatability.rb

### Methods

define_callbacks

### Public Instance methods

define_callbacks(*args)

The implementation of this method is taken from the Rails 1.2.6 source, from rails/activerecord/lib/active_record/callbacks.rb, line 192.

[Source]

        # File vendor/plugins/paperclip/lib/paperclip/callback_compatability.rb, line 13
    13:       def define_callbacks(*args)
    14:         args.each do |method|
    15:           self.class_eval "def self.\#{method}(*callbacks, &block)\ncallbacks << block if block_given?\nwrite_inheritable_array(\#{method.to_sym.inspect}, callbacks)\nend\n"
    16:         end
    17:       end

[Validate]