class CallbacksTest::OneTwoThreeSave
Attributes
record[RW]
Public Class Methods
new()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 769 def initialize @record = [] end
Public Instance Methods
first()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 779 def first @record << "one" end
save()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 773 def save run_callbacks :save do @record << "yielded" end end
second()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 783 def second @record << "two" end
third()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 787 def third @record << "three" end