Sha256: ad0310f7f79c525aa774b4d53a4c80254e725b92e6ad1d2078ad044eed2b470d

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

module Renalware
  module Transplants
    class MDMPatientsController < Renalware::MDMPatientsController
      def index
        render_index(query: query,
                     page_title: t(".page_title"),
                     view_proc: ->(patient) { patient_transplants_mdm_path(patient) })
      end

      private

      def query
        @query ||= MDMPatientsQuery.new(q: q, named_filter: named_filter)
      end

      def named_filter
        params[:named_filter]
      end

      def q
        params[:q]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/controllers/renalware/transplants/mdm_patients_controller.rb