class CallbacksTest::CallbackObject

Public Instance Methods

around(caller) { || ... } click to toggle source
# File activesupport/test/callbacks_test.rb, line 700
def around(caller)
  caller.record << "around before"
  yield
  caller.record << "around after"
end
before(caller) click to toggle source
# File activesupport/test/callbacks_test.rb, line 692
def before(caller)
  caller.record << "before"
end
before_save(caller) click to toggle source
# File activesupport/test/callbacks_test.rb, line 696
def before_save(caller)
  caller.record << "before save"
end