Module: Moonshot::ModelHelper
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/moonshot/model_helper.rb
Instance Method Summary collapse
- #moonshot_convertkit_unsubscribe ⇒ Object
- #moonshot_convertkit_upsert(first_name: :name, fields: :convertkit_fields) ⇒ Object
Instance Method Details
#moonshot_convertkit_unsubscribe ⇒ Object
18 19 20 |
# File 'app/models/moonshot/model_helper.rb', line 18 def moonshot_convertkit_unsubscribe Moonshot::Convertkit::UnsubscribeJob.perform_later email end |
#moonshot_convertkit_upsert(first_name: :name, fields: :convertkit_fields) ⇒ Object
14 15 16 |
# File 'app/models/moonshot/model_helper.rb', line 14 def moonshot_convertkit_upsert first_name: :name, fields: :convertkit_fields Moonshot::Convertkit::UpsertJob.perform_later self.class.name, user_id: id, first_name: first_name, fields: fields end |