Sha256: dbbb5a370fee22f22d9a174fadff2d9fb5e3e17ae73c91065055f1fa5f34fe3a

Contents?: true

Size: 548 Bytes

Versions: 35

Compression:

Stored size: 548 Bytes

Contents

require_dependency "renalware/hd"

module Renalware
  module HD
    class UnmetPreferencesController < BaseController
      include PresenterHelper

      def index
        query = PatientsWithUnmetPreferencesQuery.new(query_params)
        patients = query.call.page(params[:page])
        authorize(patients)
        render locals: {
          query: query.search,
          patients: present(patients, UnmetPreferencesPresenter)
        }
      end

      private

      def query_params
        params.fetch(:q, {})
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.15 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.14 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.13 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.12 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.11 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.9 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.8 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.7 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.5 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.4 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.3 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.2 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.1 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.0 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.0.pre.rc13 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.0.pre.rc11 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.0.pre.rc10 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.0.pre.rc9 app/controllers/renalware/hd/unmet_preferences_controller.rb
renalware-core-2.0.0.pre.rc8 app/controllers/renalware/hd/unmet_preferences_controller.rb