Methods
A
F
H
N
S
T
Included Modules
Attributes
[R] halted
[R] history
[R] saved
Class Public methods
new()
# File activesupport/test/callbacks_test.rb, line 518
def initialize
  @history = []
end
set_save_callbacks()
# File activesupport/test/callbacks_test.rb, line 507
def self.set_save_callbacks
  set_callback :save, :before, :first
  set_callback :save, :before, :second
  set_callback :save, :around, :around_it
  set_callback :save, :before, :third
  set_callback :save, :after, :first
  set_callback :save, :around, :around_it
  set_callback :save, :after, :third
end
Instance Public methods
around_it()
# File activesupport/test/callbacks_test.rb, line 522
def around_it
  @history << "around1"
  yield
  @history << "around2"
end
first()
# File activesupport/test/callbacks_test.rb, line 528
def first
  @history << "first"
end
halted_callback_hook(filter)
# File activesupport/test/callbacks_test.rb, line 547
def halted_callback_hook(filter)
  @halted = filter
end
save()
# File activesupport/test/callbacks_test.rb, line 541
def save
  run_callbacks :save do
    @saved = true
  end
end
second()
# File activesupport/test/callbacks_test.rb, line 532
def second
  @history << "second"
  :halt
end
third()
# File activesupport/test/callbacks_test.rb, line 537
def third
  @history << "third"
end