Class: NoPassword::Configuration
- Inherits:
-
Object
- Object
- NoPassword::Configuration
- Defined in:
- lib/no_password.rb
Instance Attribute Summary collapse
-
#importmap ⇒ Object
Returns the value of attribute importmap.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#session_expiration ⇒ Object
Returns the value of attribute session_expiration.
-
#tailwind_content ⇒ Object
Returns the value of attribute tailwind_content.
-
#token_expiration ⇒ Object
Returns the value of attribute token_expiration.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/no_password.rb', line 16 def initialize @session_expiration = 2.hours @token_expiration = 15.minutes @secret_key = nil @importmap = Importmap::Map.new @tailwind_content = [ "#{NoPassword::Engine.root}/app/views/**/*", "#{NoPassword::Engine.root}/app/helpers/**/*", "#{NoPassword::Engine.root}/app/controllers/**/*", "#{NoPassword::Engine.root}/app/javascript/**/*.js", "#{NoPassword::Engine.root}/app/assets/**/application.tailwind.css" ] end |
Instance Attribute Details
#importmap ⇒ Object
Returns the value of attribute importmap.
14 15 16 |
# File 'lib/no_password.rb', line 14 def importmap @importmap end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
14 15 16 |
# File 'lib/no_password.rb', line 14 def secret_key @secret_key end |
#session_expiration ⇒ Object
Returns the value of attribute session_expiration.
14 15 16 |
# File 'lib/no_password.rb', line 14 def session_expiration @session_expiration end |
#tailwind_content ⇒ Object
Returns the value of attribute tailwind_content.
14 15 16 |
# File 'lib/no_password.rb', line 14 def tailwind_content @tailwind_content end |
#token_expiration ⇒ Object
Returns the value of attribute token_expiration.
14 15 16 |
# File 'lib/no_password.rb', line 14 def token_expiration @token_expiration end |