lib/generators/templates/activity_notification.rb in activity_notification-2.2.1 vs lib/generators/templates/activity_notification.rb in activity_notification-2.2.2
- old
+ new
@@ -29,10 +29,20 @@
# Configure default subscription value to use when the subscription record does not configured.
# Note that you can configure them for each method calling as default argument.
# Set false when you want to unsubscribe to any notifications as default.
config.subscribe_as_default = true
+ # Configure default email subscription value to use when the subscription record does not configured.
+ # Note that you can configure them for each method calling as default argument.
+ # Set false when you want to unsubscribe to email notifications as default.
+ # config.subscribe_to_email_as_default = true
+
+ # Configure default optional target subscription value to use when the subscription record does not configured.
+ # Note that you can configure them for each method calling as default argument.
+ # Set false when you want to unsubscribe to optinal target notifications as default.
+ # config.subscribe_to_optional_targets_as_default = true
+
# Configure the e-mail address which will be shown in ActivityNotification::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = 'please-change-me-at-config-initializers-activity_notification@example.com'
# Configure the class responsible to send e-mails.
@@ -74,10 +84,10 @@
# Configure if WebSocket API subscription using ActionCable is enabled.
# Note that you can configure them for each model by acts_as roles.
# Set true when you want to turn on WebSocket API subscription using ActionCable as default.
config.action_cable_api_enabled = false
- # Configure if ctivity_notification publishes WebSocket notifications using ActionCable only to authenticated target with Devise.
+ # Configure if activity_notification publishes WebSocket notifications using ActionCable only to authenticated target with Devise.
# Note that you can configure them for each model by acts_as roles.
# Set true when you want to use Device integration with WebSocket subscription using ActionCable as default.
config.action_cable_with_devise = false
# Configure notification channel prefix for ActionCable.