instance method callback

Ruby on Rails 2.2.3

Last seen in v2.3.18 Private — implementation detail, not part of the public API

Available in: v2.2.3 v2.3.18

Signature

callback(method)

No documentation comment.

Parameters

method req
Source
# File activerecord/lib/active_record/callbacks.rb, line 314
      def callback(method)
        result = run_callbacks(method) { |result, object| false == result }

        if result != false && respond_to_without_attributes?(method)
          result = send(method)
        end

        notify(method)

        return result
      end

Defined in activerecord/lib/active_record/callbacks.rb line 314 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::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