Defect #12349 ยป watcher_search.patch
| app/controllers/watchers_controller.rb | ||
|---|---|---|
|
end
|
||
|
def autocomplete_for_user
|
||
|
@users = User.active.like(params[:q]).find(:all, :limit => 100)
|
||
|
@users = User.active.like(params[:q].mb_chars.downcase).find(:all, :limit => 100)
|
||
|
if @watched
|
||
|
@users -= @watched.watcher_users
|
||
|
end
|
||