Flowdock
method

_define_after_model_callback

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::Callbacks
_define_after_model_callback(klass, callback) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/callbacks.rb, line 138
    def _define_after_model_callback(klass, callback) #:nodoc:
      klass.class_eval         def self.after_#{callback}(*args, &block)          options = args.extract_options!          options[:prepend] = true          options[:if] = Array(options[:if]) << "value != false"          set_callback(:#{callback}, :after, *(args << options), &block)        end, __FILE__, __LINE__ + 1
    end
Register or log in to add new notes.