lib/activity_notification/config.rb in activity_notification-1.6.1 vs lib/activity_notification/config.rb in activity_notification-1.7.0

- old
+ new

@@ -90,10 +90,19 @@ # Sets base mailer class for email notification # @param [String] parent_mailer The new parent_mailer # @return [String] Base mailer class for email notification. attr_accessor :parent_mailer + # @overload parent_job + # Returns base job class for delayed notifications + # @return [String] Base job class for delayed notifications. + # @overload parent_job=(value) + # Sets base job class for delayed notifications + # @param [String] parent_job The new parent_job + # @return [String] Base job class for delayed notifications. + attr_accessor :parent_job + # @overload parent_controller # Returns base controller class for notifications_controller # @return [String] Base controller class for notifications_controller. # @overload parent_controller=(value) # Sets base controller class for notifications_controller @@ -117,10 +126,19 @@ # Sets default limit to query for opened notifications # @param [Integer] opened_index_limit The new opened_index_limit # @return [Integer] Default limit to query for opened notifications. attr_accessor :opened_index_limit + # @overload active_job_queue + # Returns ActiveJob queue name for delayed notifications + # @return [Symbol] ActiveJob queue name for delayed notifications. + # @overload active_job_queue=(value) + # Sets ActiveJob queue name for delayed notifications + # @param [Symbol] active_job_queue The new active_job_queue + # @return [Symbol] ActiveJob queue name for delayed notifications. + attr_accessor :active_job_queue + # @overload :orm # Returns ORM name for ActivityNotification (:active_record or :mongoid) # @return [Boolean] ORM name for ActivityNotification (:active_record or :mongoid). attr_reader :orm @@ -135,12 +153,14 @@ @subscription_enabled = false @subscribe_as_default = true @mailer_sender = nil @mailer = 'ActivityNotification::Mailer' @parent_mailer = 'ActionMailer::Base' + @parent_job = 'ActiveJob::Base' @parent_controller = 'ApplicationController' @mailer_templates_dir = 'activity_notification/mailer' @opened_index_limit = 10 + @active_job_queue = :activity_notification @orm = :active_record end # Sets ORM name for ActivityNotification (:active_record or :mongoid) # @param [Symbol, String] orm The new ORM name for ActivityNotification (:active_record or :mongoid)