Commit e7df3c52b417e412244e83dcd243c1bb99492e61
1 parent
f7bab27e
Exists in
master
and in
29 other branches
Update find_by_contents call on invite_controller
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/invite_controller.rb
... | ... | @@ -80,7 +80,7 @@ class InviteController < PublicController |
80 | 80 | end |
81 | 81 | |
82 | 82 | def search_friend |
83 | - render :text => find_by_contents(:people, environment.people.not_members_of(profile), params['q'], {:page => 1}, {:joins => :user})[:results].map {|person| {:id => person.id, :name => person.name} }.to_json | |
83 | + render :text => find_by_contents(:people, environment, environment.people.not_members_of(profile), params['q'], {:page => 1}, {:joins => :user})[:results].map {|person| {:id => person.id, :name => person.name} }.to_json | |
84 | 84 | end |
85 | 85 | |
86 | 86 | protected | ... | ... |