module Clear::Model::HasHooks
Direct including types
Defined in:
clear/model/modules/has_hooks.crMacro Summary
Instance Method Summary
-
#trigger_after_events(event_name)
Triggers the events hooked after
event_name
-
#trigger_before_events(event_name)
Triggers the events hooked before
event_name
-
#with_triggers(event_name, &)
This performs theses operations:
Macro Detail
Instance Method Detail
def with_triggers(event_name, &)
#
This performs theses operations:
model.with_triggers("email_sent") do |m|
model.send_email
end
Returns self