Class: ActiveSupport::Callbacks::Callback

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/callbacks_ext.rb

Instance Method Summary collapse

Instance Method Details

#applies?(object) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/active_support/callbacks_ext.rb', line 4

def applies? object
  conditions_lambdas.all? { |c| c.call(object, nil) }
end