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


115
116
117
118
119
# File 'activesupport/lib/active_support/callbacks.rb', line 115

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