Changeset 164

Show
Ignore:
Timestamp:
02/19/07 17:25:03 (2 years ago)
Author:
anotherjes..@gmail.com
Message:

downcase input when doing a username search

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/models/user.rb

    r159 r164  
    4242 
    4343  def self.build_search_conditions(query) 
    44     query && ['LOWER(display_name) LIKE :q', {:q => "%#{query}%"}] 
     44    query && ['LOWER(display_name) LIKE :q', {:q => "%#{query.downcase}%"}] 
    4545  end 
    4646