Class: Rabarber::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rabarber/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
16
# File 'lib/rabarber/configuration.rb', line 11

def initialize
  @audit_trail_enabled = default_audit_trail_enabled
  @cache_enabled = default_cache_enabled
  @current_user_method = default_current_user_method
  @must_have_roles = default_must_have_roles
end

Instance Attribute Details

#audit_trail_enabledObject

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_enabledObject

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_methodObject

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_rolesObject

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