Class: Gearhead::RansackConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/gearhead/configuration.rb

Overview

not implemented

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRansackConfiguration

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

#associationsObject

Returns the value of attribute associations.



4
5
6
# File 'lib/gearhead/configuration.rb', line 4

def associations
  @associations
end

#attributesObject

Returns the value of attribute attributes.



4
5
6
# File 'lib/gearhead/configuration.rb', line 4

def attributes
  @attributes
end

#enabledObject

Returns the value of attribute enabled.



4
5
6
# File 'lib/gearhead/configuration.rb', line 4

def enabled
  @enabled
end

#predicatesObject

Returns the value of attribute predicates.



4
5
6
# File 'lib/gearhead/configuration.rb', line 4

def predicates
  @predicates
end

#scopesObject

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/gearhead/configuration.rb', line 13

def enabled?
  @enabled
end