Flowdock
run_callbacks(kind, *args, &block) public

Runs the callbacks for the given event.

Calls the before and around callbacks in the order they were set, yields the block (if given one), and then runs the after callbacks in reverse order. Optionally accepts a key, which will be used to compile an optimized callback method for each key. See ClassMethods.define_callbacks for more information.

If the callback chain was halted, returns false. Otherwise returns the result of the block, or true if no block is given.

run_callbacks :save do
  save
end
Show source
Register or log in to add new notes.