Class: DataMapper::Query::SortCaseInsensitive
- Inherits:
-
Sort
- Object
- Sort
- DataMapper::Query::SortCaseInsensitive
- Defined in:
- lib/adapters/ldap_adapter.rb
Instance Method Summary collapse
-
#initialize(value, ascending = true) ⇒ SortCaseInsensitive
constructor
A new instance of SortCaseInsensitive.
Constructor Details
#initialize(value, ascending = true) ⇒ SortCaseInsensitive
Returns a new instance of SortCaseInsensitive.
91 92 93 94 95 96 97 |
# File 'lib/adapters/ldap_adapter.rb', line 91 def initialize(value, ascending = true) if(value && value.is_a?(String)) super(value.upcase, ascending) else super end end |