Sha256: 08bb57044e4d9e000609bc2b160c4cdf64e9dfe1f8547860dec0d478fdeadfc8
Contents?: true
Size: 714 Bytes
Versions: 8
Compression:
Stored size: 714 Bytes
Contents
require_dependency "renalware/modalities" module Renalware module Modalities class ReasonsController < BaseController skip_after_action :verify_authorized def index @reason_hd_pd = HaemodialysisToPD.all @reason_pd_hd = PDToHaemodialysis.all modal_change_type = params[:modal_change_type] type = modal_change_type ? "Renalware::Modalities::#{modal_change_type.camelize}" : nil @modality_reason_select = Reason.where(type: type) respond_to do |format| format.html format.json { render json: @modality_reason_select.as_json(only: [:id, :rr_code, :description]) } end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems