Method: Nyauth::Configuration#initialize
- Defined in:
- lib/nyauth/configuration.rb
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/nyauth/configuration.rb', line 22 def initialize @redirect_path_after_sign_in = Proc.new {} @redirect_path_after_sign_out = Proc.new {} @redirect_path_after_registration = Proc.new {} @redirect_path_after_create_request_confirmation = Proc.new {} @redirect_path_after_update_confirmation = Proc.new {} @redirect_path_after_reset_password_request = Proc.new {} @redirect_path_after_reset_password = Proc.new {} @redirect_path_after_update_password = Proc.new {} @confirmation_expire_limit = 1.hour @reset_password_expire_limit = 1.hour @password_minium = 8 @password_digest_stretches = 1000 @encryption_secret = ENV['NYAUTH_ENCRYPTION_SECRET'] @mail_delivery_method = :deliver_now = false @mailer_sender = '[email protected]' @redirect_path_block = Proc.new {} end |