Class: Mori::Configuration

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

Overview

Mori Configuration is for setting application wide settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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
   = true
   = '/'
  @after_logout_path = '/'
  @dashboard_path = '/'
  @token_expiration = 14
end

Instance Attribute Details

#after_logout_pathObject

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_pathObject

Returns the value of attribute after_sign_up_path.



4
5
6
# File 'lib/mori/configuration.rb', line 4

def 
  
end

#allow_sign_upObject

Returns the value of attribute allow_sign_up.



4
5
6
# File 'lib/mori/configuration.rb', line 4

def 
  
end

#app_nameObject

Returns the value of attribute app_name.



4
5
6
# File 'lib/mori/configuration.rb', line 4

def app_name
  @app_name
end

#dashboard_pathObject

Returns the value of attribute dashboard_path.



4
5
6
# File 'lib/mori/configuration.rb', line 4

def dashboard_path
  @dashboard_path
end

#from_emailObject

Returns the value of attribute from_email.



4
5
6
# File 'lib/mori/configuration.rb', line 4

def from_email
  @from_email
end

#token_expirationObject

Returns the value of attribute token_expiration.



4
5
6
# File 'lib/mori/configuration.rb', line 4

def token_expiration
  @token_expiration
end

#user_modelObject

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?
  
end