Flowdock
method

halting

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: Around
halting(callback_sequence, user_callback) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/callbacks.rb, line 277
        def self.halting(callback_sequence, user_callback)
          callback_sequence.around do |env, &run|
            target = env.target
            value  = env.value

            if env.halted
              run.call
            else
              user_callback.call(target, value) {
                run.call.value
              }
              env
            end
          end
        end
Register or log in to add new notes.