Class: Gearhead::RansackConfiguration
- Inherits:
-
Object
- Object
- Gearhead::RansackConfiguration
- Defined in:
- lib/gearhead/configuration.rb
Overview
not implemented
Instance Attribute Summary collapse
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#predicates ⇒ Object
Returns the value of attribute predicates.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
-
#initialize ⇒ RansackConfiguration
constructor
A new instance of RansackConfiguration.
Constructor Details
#initialize ⇒ RansackConfiguration
Returns a new instance of RansackConfiguration.
5 6 7 8 9 10 11 |
# File 'lib/gearhead/configuration.rb', line 5 def initialize @enabled = true @predicates = true @associations = true @attributes = true @scopes = true end |
Instance Attribute Details
#associations ⇒ Object
Returns the value of attribute associations.
4 5 6 |
# File 'lib/gearhead/configuration.rb', line 4 def associations @associations end |
#attributes ⇒ Object
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/gearhead/configuration.rb', line 4 def attributes @attributes end |
#enabled ⇒ Object
Returns the value of attribute enabled.
4 5 6 |
# File 'lib/gearhead/configuration.rb', line 4 def enabled @enabled end |
#predicates ⇒ Object
Returns the value of attribute predicates.
4 5 6 |
# File 'lib/gearhead/configuration.rb', line 4 def predicates @predicates end |
#scopes ⇒ Object
Returns the value of attribute scopes.
4 5 6 |
# File 'lib/gearhead/configuration.rb', line 4 def scopes @scopes end |
Instance Method Details
#enabled? ⇒ Boolean
13 14 15 |
# File 'lib/gearhead/configuration.rb', line 13 def enabled? @enabled end |