Class: Lipstick::Filterable::CollatedArelAttribute
- Inherits:
-
Arel::Nodes::Node
- Object
- Arel::Nodes::Node
- Lipstick::Filterable::CollatedArelAttribute
- 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
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#collation ⇒ Object
readonly
Returns the value of attribute collation.
Instance Method Summary collapse
-
#initialize(attribute, collation) ⇒ CollatedArelAttribute
constructor
A new instance of CollatedArelAttribute.
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
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
10 11 12 |
# File 'lib/lipstick/filterable.rb', line 10 def attribute @attribute end |
#collation ⇒ Object (readonly)
Returns the value of attribute collation.
10 11 12 |
# File 'lib/lipstick/filterable.rb', line 10 def collation @collation end |