lib/devise-onesignal/configuration.rb in devise-onesignal-1.1.1 vs lib/devise-onesignal/configuration.rb in devise-onesignal-1.2.1

- old
+ new

@@ -1,17 +1,27 @@ module DeviseOneSignal class Configuration cattr_accessor :app_id, instance_accessor: false + def self.devise_class + @@devise_class || 'User' + end + cattr_writer :devise_class, instance_accessor: false + def self.auto_register @@auto_register || false end cattr_writer :auto_register, instance_accessor: false - def self.devise_class - @@devise_class || 'User' + def self.persist_notification + @@persist_notification || false end - cattr_writer :devise_class, instance_accessor: false + cattr_writer :persist_notification, instance_accessor: false + + def self.subscribe_with_modal + @@subscribe_with_modal || false + end + cattr_writer :subscribe_with_modal, instance_accessor: false end end