Method: IshManager::UserProfilesController#index

Defined in:
app/controllers/ish_manager/user_profiles_controller.rb

#indexObject



33
34
35
36
37
38
39
# File 'app/controllers/ish_manager/user_profiles_controller.rb', line 33

def index
  @user_profiles = Ish::UserProfile.all
  authorize! :index, Ish::UserProfile
  if params[:q]
    @user_profiles = @user_profiles.where({ :email => /#{params[:q]}/i })
  end
end