Class: NoPassword::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/no_password.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#importmapObject

Returns the value of attribute importmap.



14
15
16
# File 'lib/no_password.rb', line 14

def importmap
  @importmap
end

#secret_keyObject

Returns the value of attribute secret_key.



14
15
16
# File 'lib/no_password.rb', line 14

def secret_key
  @secret_key
end

#session_expirationObject

Returns the value of attribute session_expiration.



14
15
16
# File 'lib/no_password.rb', line 14

def session_expiration
  @session_expiration
end

#tailwind_contentObject

Returns the value of attribute tailwind_content.



14
15
16
# File 'lib/no_password.rb', line 14

def tailwind_content
  @tailwind_content
end

#token_expirationObject

Returns the value of attribute token_expiration.



14
15
16
# File 'lib/no_password.rb', line 14

def token_expiration
  @token_expiration
end