We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Subclasses can inherit callbacks by inherit_callback_group.
class Super Callback.enable define_callback_group :super before_super do puts "super" end end class Sub < Super inherit_callback_group :super before_super do "super in sub" end end Super.new.run_callbacks_for_super {} Sub.new.run_callbacks_for_super {}
This prints:
super super super in sub
There was an error while loading. Please reload this page.