class CallbacksTest::CallbackClass

Public Class Methods

after(model) click to toggle source
# File activesupport/test/callbacks_test.rb, line 51
def self.after(model)
  model.history << [:after_save, :class]
end
before(model) click to toggle source
# File activesupport/test/callbacks_test.rb, line 47
def self.before(model)
  model.history << [:before_save, :class]
end