Class: DataMapper::Query::SortCaseInsensitive

Inherits:
Sort
  • Object
show all
Defined in:
lib/adapters/ldap_adapter.rb

Instance Method Summary collapse

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