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



111
112
113
114
115
# File 'activesupport/lib/active_support/callbacks.rb', line 111

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