instance method __run_callbacks__

Ruby on Rails 4.2.9

Since v4.2.9 Last seen in v4.2.9 Private — implementation detail, not part of the public API

Signature

__run_callbacks__(callbacks, &block)

No documentation comment.

Parameters

callbacks req
block block
Source
# File activesupport/lib/active_support/callbacks.rb, line 86
    def __run_callbacks__(callbacks, &block)
      if callbacks.empty?
        yield if block_given?
      else
        runner = callbacks.compile
        e = Filters::Environment.new(self, false, nil, block)
        runner.call(e).value
      end
    end

Defined in activesupport/lib/active_support/callbacks.rb line 86 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Callbacks

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close