Class: Rabarber::Configuration
- Inherits:
-
Object
- Object
- Rabarber::Configuration
- Includes:
- Singleton
- Defined in:
- lib/rabarber/configuration.rb
Instance Attribute Summary collapse
-
#audit_trail_enabled ⇒ Object
readonly
Returns the value of attribute audit_trail_enabled.
-
#cache_enabled ⇒ Object
readonly
Returns the value of attribute cache_enabled.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#must_have_roles ⇒ Object
readonly
Returns the value of attribute must_have_roles.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 |
# File 'lib/rabarber/configuration.rb', line 11 def initialize @audit_trail_enabled = true @cache_enabled = true @current_user_method = :current_user @must_have_roles = false end |
Instance Attribute Details
#audit_trail_enabled ⇒ Object (readonly)
Returns the value of attribute audit_trail_enabled.
9 10 11 |
# File 'lib/rabarber/configuration.rb', line 9 def audit_trail_enabled @audit_trail_enabled end |
#cache_enabled ⇒ Object (readonly)
Returns the value of attribute cache_enabled.
9 10 11 |
# File 'lib/rabarber/configuration.rb', line 9 def cache_enabled @cache_enabled end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
9 10 11 |
# File 'lib/rabarber/configuration.rb', line 9 def current_user_method @current_user_method end |
#must_have_roles ⇒ Object (readonly)
Returns the value of attribute must_have_roles.
9 10 11 |
# File 'lib/rabarber/configuration.rb', line 9 def must_have_roles @must_have_roles end |