diff --git a/app/controllers/public/invite_controller.rb b/app/controllers/public/invite_controller.rb index 7e7fa51..d65f43d 100644 --- a/app/controllers/public/invite_controller.rb +++ b/app/controllers/public/invite_controller.rb @@ -80,7 +80,7 @@ class InviteController < PublicController end def search_friend - 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 + 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 end protected -- libgit2 0.21.2