Class: EspAuth::UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/esp_auth/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#searchObject



8
9
10
11
# File 'app/controllers/esp_auth/users_controller.rb', line 8

def search
  url = "#{Settings['sso.url']}/users.json?user_search[keywords]=#{URI.escape(params[:term])}"
  render :json => JSON.parse(Requester.new(url).response_body) and return
end