Class: Ruolo::Configuration
- Inherits:
-
Object
- Object
- Ruolo::Configuration
- Defined in:
- lib/ruolo/configuration.rb
Overview
A class that defines all the configuration overrides.
Instance Attribute Summary collapse
-
#connection ⇒ Object
Sequel to connection to use.
-
#user_class ⇒ Object
User class for association with ruolo models.
Instance Method Summary collapse
-
#initialize ⇒ Ruolo::Configuration
constructor
Create a new configuration object.
Constructor Details
#initialize ⇒ Ruolo::Configuration
Create a new configuration object.
28 29 30 31 |
# File 'lib/ruolo/configuration.rb', line 28 def initialize @connection = nil @user_class = 'User' end |
Instance Attribute Details
#connection ⇒ Object
Sequel to connection to use.
21 22 23 |
# File 'lib/ruolo/configuration.rb', line 21 def connection @connection end |
#user_class ⇒ Object
User class for association with ruolo models.
23 24 25 |
# File 'lib/ruolo/configuration.rb', line 23 def user_class @user_class end |