Class: Mori::Configuration
- Inherits:
-
Object
- Object
- Mori::Configuration
- Defined in:
- lib/mori/configuration.rb
Overview
Mori Configuration is for setting application wide settings
Instance Attribute Summary collapse
-
#after_logout_path ⇒ Object
Returns the value of attribute after_logout_path.
-
#after_sign_up_path ⇒ Object
Returns the value of attribute after_sign_up_path.
-
#allow_sign_up ⇒ Object
Returns the value of attribute allow_sign_up.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#dashboard_path ⇒ Object
Returns the value of attribute dashboard_path.
-
#from_email ⇒ Object
Returns the value of attribute from_email.
-
#token_expiration ⇒ Object
Returns the value of attribute token_expiration.
-
#user_model ⇒ Object
Returns the value of attribute user_model.
Instance Method Summary collapse
- #allow_sign_up? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
14 15 16 17 18 19 20 21 22 |
# File 'lib/mori/configuration.rb', line 14 def initialize @from_email = '[email protected]' @app_name = Rails.application.class.parent_name.humanize @allow_sign_up = true @after_sign_up_path = '/' @after_logout_path = '/' @dashboard_path = '/' @token_expiration = 14 end |
Instance Attribute Details
#after_logout_path ⇒ Object
Returns the value of attribute after_logout_path.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def after_logout_path @after_logout_path end |
#after_sign_up_path ⇒ Object
Returns the value of attribute after_sign_up_path.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def after_sign_up_path @after_sign_up_path end |
#allow_sign_up ⇒ Object
Returns the value of attribute allow_sign_up.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def allow_sign_up @allow_sign_up end |
#app_name ⇒ Object
Returns the value of attribute app_name.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def app_name @app_name end |
#dashboard_path ⇒ Object
Returns the value of attribute dashboard_path.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def dashboard_path @dashboard_path end |
#from_email ⇒ Object
Returns the value of attribute from_email.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def from_email @from_email end |
#token_expiration ⇒ Object
Returns the value of attribute token_expiration.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def token_expiration @token_expiration end |
#user_model ⇒ Object
Returns the value of attribute user_model.
4 5 6 |
# File 'lib/mori/configuration.rb', line 4 def user_model @user_model end |
Instance Method Details
#allow_sign_up? ⇒ Boolean
24 25 26 |
# File 'lib/mori/configuration.rb', line 24 def allow_sign_up? allow_sign_up end |