Flowdock
method

_define_before_model_callback

Importance_0
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveModel::Callbacks
_define_before_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 122
    def _define_before_model_callback(klass, callback) #:nodoc:
      klass.define_singleton_method("before_#{callback}") do |*args, &block|
        set_callback(:"#{callback}", :before, *args, &block)
      end
    end
Register or log in to add new notes.