Changeset 1815
- Timestamp:
- 07/11/05 07:49:56 (3 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/auto_complete.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r1814 r1815 1 1 *1.9.1* (11 July, 2005) 2 3 * Fixed that auto_complete_for didn't force the input string to lower case even as the db comparison was 2 4 3 5 * Fixed that Action View should always use the included Builder, never attempt to require the gem, to ensure compatibility trunk/actionpack/lib/action_controller/auto_complete.rb
r1814 r1815 34 34 define_method("auto_complete_for_#{object}_#{method}") do 35 35 find_options = { 36 :conditions => [ "LOWER(#{method}) LIKE ?", '%' + params[object][method] + '%' ],36 :conditions => [ "LOWER(#{method}) LIKE ?", '%' + params[object][method].downcase + '%' ], 37 37 :order => "#{method} ASC", 38 38 :limit => 10 }.merge!(options)