watcher_search.patch

Alexander Oryol, 2012-11-12 16:02

Download (875 Bytes)

View differences:

app/controllers/watchers_controller.rb
64 64
  end
65 65

  
66 66
  def autocomplete_for_user
67
    @users = User.active.like(params[:q]).find(:all, :limit => 100)
67
    @users = User.active.like(params[:q].mb_chars.downcase).find(:all, :limit => 100)
68 68
    if @watched
69 69
      @users -= @watched.watcher_users
70 70
    end
71
-