Sha256: 7232a0d37c235331f413dcbeb5aa2b65d1937f8917e2e0a22383f612ce4728af
Contents?: true
Size: 452 Bytes
Versions: 29
Compression:
Stored size: 452 Bytes
Contents
require_dependency "renalware/hospitals" module Renalware module Hospitals class WardsController < BaseController def index authorize Ward, :index? unit = Unit.find(params[:unit_id]) wards = Ward.where(hospital_unit_id: unit.id).order(name: :asc).select(:id, :name) respond_to do |format| format.json do render json: wards.to_json end end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems