lib/devise.rb in devise-2.2.2 vs lib/devise.rb in devise-2.2.3

- old
+ new

@@ -41,11 +41,11 @@ NO_INPUT = [] # True values used to check params TRUE_VALUES = [true, 1, '1', 't', 'T', 'true', 'TRUE'] - # Custom domain for cookies. Not set by default + # Custom domain or key for cookies. Not set by default mattr_accessor :rememberable_options @@rememberable_options = {} # The number of times to encrypt password. mattr_accessor :stretches @@ -196,9 +196,15 @@ # The parent controller all Devise controllers inherits from. # Defaults to ApplicationController. This should be set early # in the initialization process and should be set to a string. mattr_accessor :parent_controller @@parent_controller = "ApplicationController" + + # The parent mailer all Devise mailers inherit from. + # Defaults to ActionMailer::Base. This should be set early + # in the initialization process and should be set to a string. + mattr_accessor :parent_mailer + @@parent_mailer = "ActionMailer::Base" # The router Devise should use to generate routes. Defaults # to :main_app. Should be overriden by engines in order # to provide custom routes. mattr_accessor :router_name