Class: Merit::Configuration
- Inherits:
-
Object
- Object
- Merit::Configuration
- Defined in:
- lib/merit.rb
Instance Attribute Summary collapse
-
#checks_on_each_request ⇒ Object
Returns the value of attribute checks_on_each_request.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#observers ⇒ Object
Returns the value of attribute observers.
-
#orm ⇒ Object
Returns the value of attribute orm.
-
#user_model_name ⇒ Object
Returns the value of attribute user_model_name.
Instance Method Summary collapse
- #add_observer(class_name) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
61 62 63 64 65 66 |
# File 'lib/merit.rb', line 61 def initialize @checks_on_each_request = true @orm = :active_record @user_model_name = 'User' @observers = [] end |
Instance Attribute Details
#checks_on_each_request ⇒ Object
Returns the value of attribute checks_on_each_request.
58 59 60 |
# File 'lib/merit.rb', line 58 def checks_on_each_request @checks_on_each_request end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
58 59 60 |
# File 'lib/merit.rb', line 58 def current_user_method @current_user_method end |
#observers ⇒ Object
Returns the value of attribute observers.
58 59 60 |
# File 'lib/merit.rb', line 58 def observers @observers end |
#orm ⇒ Object
Returns the value of attribute orm.
58 59 60 |
# File 'lib/merit.rb', line 58 def orm @orm end |
#user_model_name ⇒ Object
Returns the value of attribute user_model_name.
58 59 60 |
# File 'lib/merit.rb', line 58 def user_model_name @user_model_name end |
Instance Method Details
#add_observer(class_name) ⇒ Object
68 69 70 |
# File 'lib/merit.rb', line 68 def add_observer(class_name) @observers << class_name end |