lib/generators/templates/activity_notification.rb in activity_notification-1.4.1 vs lib/generators/templates/activity_notification.rb in activity_notification-1.4.2
- old
+ new
@@ -1,10 +1,10 @@
ActivityNotification.configure do |config|
# Configure ORM name for ActivityNotification.
# Set :active_record or :mongoid.
- ENV['AN_ORM'] = 'active_record' if ENV['AN_ORM'] != 'mongoid'
+ ENV['AN_ORM'] = 'active_record' unless 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
@@ -38,9 +38,12 @@
# 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 the parent class for activity_notification controllers.
+ # config.parent_controller = 'ApplicationController'
# Configure default limit number of opened notifications you can get from opened* scope
config.opened_index_limit = 10
end