Skip to content

Commit

Permalink
Fixed non-working around callback example
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrenner committed Sep 6, 2012
1 parent c9d1ba4 commit b883595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/callbacks.rb
Expand Up @@ -367,7 +367,7 @@ def __update_callbacks(name, filters = [], block = nil) #:nodoc:
#
# set_callback :save, :before, :before_meth
# set_callback :save, :after, :after_meth, :if => :condition
# set_callback :save, :around, lambda { |r| stuff; result = yield; stuff }
# set_callback :save, :around, lambda { |r, &block| stuff; result = block.call; stuff }
#
# The second arguments indicates whether the callback is to be run +:before+,
# +:after+, or +:around+ the event. If omitted, +:before+ is assumed. This
Expand Down

0 comments on commit b883595

Please sign in to comment.