Module: Protocolist::ModelAdditions
- Extended by:
- ActiveSupport::Concern
- Includes:
- Util::DataProc
- Defined in:
- lib/protocolist/model_additions.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#fire(activity_type, options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/protocolist/model_additions.rb', line 8 def fire(activity_type, = {}) target = case [:target] when nil self when false nil else [:target] end = .merge(target: target) Protocolist.fire(activity_type, ) end |