Class: Lipstick::Filterable::CollatedArelAttribute

Inherits:
Arel::Nodes::Node
  • Object
show all
Includes:
Arel::Predications
Defined in:
lib/lipstick/filterable.rb

Overview

Provides case-insensitive matching on a case-sensitive MySQL database (which is mandated by Gumboot)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute, collation) ⇒ CollatedArelAttribute

Returns a new instance of CollatedArelAttribute.



12
13
14
15
16
# File 'lib/lipstick/filterable.rb', line 12

def initialize(attribute, collation)
  super()
  @attribute = attribute
  @collation = collation
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



10
11
12
# File 'lib/lipstick/filterable.rb', line 10

def attribute
  @attribute
end

#collationObject (readonly)

Returns the value of attribute collation.



10
11
12
# File 'lib/lipstick/filterable.rb', line 10

def collation
  @collation
end