Class: Maquina::Configuration
- Inherits:
-
Object
- Object
- Maquina::Configuration
- Defined in:
- lib/maquina.rb
Instance Attribute Summary collapse
-
#importmap ⇒ Object
Returns the value of attribute importmap.
-
#membership_roles ⇒ Object
Returns the value of attribute membership_roles.
-
#password_retain_count ⇒ Object
Returns the value of attribute password_retain_count.
-
#root_app_path ⇒ Object
Returns the value of attribute root_app_path.
-
#search_adapter ⇒ Object
Returns the value of attribute search_adapter.
-
#session_expiration ⇒ Object
Returns the value of attribute session_expiration.
-
#signin_attempts ⇒ Object
Returns the value of attribute signin_attempts.
-
#tailwind_content ⇒ Object
Returns the value of attribute tailwind_content.
-
#temporary_block ⇒ Object
Returns the value of attribute temporary_block.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/maquina.rb', line 19 def initialize @password_retain_count = 3 @temporary_block = 5.minutes @session_expiration = 2.days @signin_attempts = 5 @root_app_path = "/" @membership_roles = %w[admin member].index_by(&:itself) @search_adapter = nil @tailwind_content = [ "#{Maquina::Engine.root}/app/views/**/*.{rb,erb}", "#{Maquina::Engine.root}/app/helpers/**/*.rb", "#{Maquina::Engine.root}/app/controllers/**/*.rb", "#{Maquina::Engine.root}/app/javascript/**/*.js" ] end |
Instance Attribute Details
#importmap ⇒ Object
Returns the value of attribute importmap.
16 17 18 |
# File 'lib/maquina.rb', line 16 def importmap @importmap end |
#membership_roles ⇒ Object
Returns the value of attribute membership_roles.
16 17 18 |
# File 'lib/maquina.rb', line 16 def membership_roles @membership_roles end |
#password_retain_count ⇒ Object
Returns the value of attribute password_retain_count.
16 17 18 |
# File 'lib/maquina.rb', line 16 def password_retain_count @password_retain_count end |
#root_app_path ⇒ Object
Returns the value of attribute root_app_path.
16 17 18 |
# File 'lib/maquina.rb', line 16 def root_app_path @root_app_path end |
#search_adapter ⇒ Object
Returns the value of attribute search_adapter.
16 17 18 |
# File 'lib/maquina.rb', line 16 def search_adapter @search_adapter end |
#session_expiration ⇒ Object
Returns the value of attribute session_expiration.
16 17 18 |
# File 'lib/maquina.rb', line 16 def session_expiration @session_expiration end |
#signin_attempts ⇒ Object
Returns the value of attribute signin_attempts.
16 17 18 |
# File 'lib/maquina.rb', line 16 def signin_attempts @signin_attempts end |
#tailwind_content ⇒ Object
Returns the value of attribute tailwind_content.
16 17 18 |
# File 'lib/maquina.rb', line 16 def tailwind_content @tailwind_content end |
#temporary_block ⇒ Object
Returns the value of attribute temporary_block.
16 17 18 |
# File 'lib/maquina.rb', line 16 def temporary_block @temporary_block end |