lib/generators/templates/activity_notification.rb in activity_notification-1.2.1 vs lib/generators/templates/activity_notification.rb in activity_notification-1.3.0

- old
+ new

@@ -1,14 +1,19 @@ ActivityNotification.configure do |config| - # Configure if all activity notifications are enabled - # Set false when you want to turn off activity notifications + # Configure ORM name for ActivityNotification. + # Set :active_record or :mongoid. + ENV['AN_ORM'] = 'active_record' if ENV['AN_ORM'] != 'mongoid' + config.orm = ENV['AN_ORM'] + + # 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 + # Configure table name to store notification data. config.notification_table_name = "notifications" - # Configure table name to store subscription data + # 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.