Class: ActiveSupport::Callbacks::Filters::End

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

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object


124
125
126
127
128
# File 'activesupport/lib/active_support/callbacks.rb', line 124

def call(env)
  block = env.run_block
  env.value = !env.halted && (!block || block.call)
  env
end