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 = true
  @cache_enabled = true
  @current_user_method = :current_user
  @must_have_roles = false
end

Instance Attribute Details

#audit_trail_enabledObject (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_enabledObject (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_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 (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