Class: EgovUtils::OrganizationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/egov_utils/organizations_controller.rb

Instance Method Summary collapse

Instance Method Details

#district_courtsObject



4
5
6
7
# File 'app/controllers/egov_utils/organizations_controller.rb', line 4

def district_courts
  ids = params[:ids]
  render json: Organization.district_courts([ids].flatten).collect{|o| o.id }
end