Sha256: 2d8cabef6ac7e7469964690db3b45e47ffdbdf3b361832cac52903ef054b52f8
Contents?: true
Size: 1.82 KB
Versions: 6
Compression:
Stored size: 1.82 KB
Contents
ActivityNotification.configure do |config| # Configure if all activity notifications are enabled # Set false when you want to turn off activity notifications config.enabled = true # Configure table name to store notification data config.notification_table_name = "notifications" # Configure table name to store subscription data config.subscription_table_name = "subscriptions" # Configure if email notification is enabled as default. # Note that you can configure them for each model by acts_as roles. # Set true when you want to turn on email notifications as default. config.email_enabled = false # Configure if subscription is managed. # Note that this parameter must be true when you want use subscription management. # However, you can also configure them for each model by acts_as roles. # Set true when you want to turn on subscription management as default. config.subscription_enabled = false # 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 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. # config.mailer = "ActivityNotification::Mailer" # Configure the parent class responsible to send e-mails. # config.parent_mailer = 'ActionMailer::Base' # Configure default limit number of opened notifications you can get from opened* scope config.opened_index_limit = 10 end
Version data entries
6 entries across 3 versions & 1 rubygems