class GrandParent
Attributes
action_name[R]
log[R]
Public Class Methods
new(action_name)
click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 9 def initialize(action_name) @action_name, @log = action_name, [] end
Public Instance Methods
after1()
click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 25 def after1 @log << "after1" end
after2()
click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 29 def after2 @log << "after2" end
before1()
click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 17 def before1 @log << "before1" end
before2()
click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 21 def before2 @log << "before2" end
dispatch()
click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 33 def dispatch run_callbacks :dispatch do @log << action_name end self end