Method: ActiveSupport::Callbacks::CallbackSequence#skip?

Defined in:
activesupport/lib/active_support/callbacks.rb

#skip?(arg) ⇒ Boolean

Returns:

  • (Boolean)


544
545
546
# File 'activesupport/lib/active_support/callbacks.rb', line 544

def skip?(arg)
  arg.halted || !@user_conditions.all? { |c| c.call(arg.target, arg.value) }
end