Class: Noticed::Ephemeral::Notification
- Inherits:
-
Object
- Object
- Noticed::Ephemeral::Notification
- Includes:
- ActiveModel::Attributes, ActiveModel::Model, Translation
- Defined in:
- app/models/noticed/ephemeral.rb
Class Method Summary collapse
Methods included from Translation
#class_scope, #i18n_scope, #scope_translation_key, #translate
Class Method Details
.new_with_params(recipient, params) ⇒ Object
23 24 25 26 27 |
# File 'app/models/noticed/ephemeral.rb', line 23 def self.new_with_params(recipient, params) instance = new(recipient: recipient) instance.event = module_parent.new(params: params) instance end |