Sha256: 9aa757018cfeb0f669a37c9203b0c197df15058d22466638aa5b0dee09090f8f

Contents?: true

Size: 464 Bytes

Versions: 18

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/pd"

module Renalware
  module PD
    class AdequacyCompletionsController < BaseController
      include Pagy::Backend

      def index
        query = AdequacyResult.joins(:patient).order(performed_on: :desc).ransack(params[:q])
        pagy, results = pagy(query.result)
        authorize results
        render locals: { pagination: pagy, results: results, query: query }
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.1.0 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.167 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.166 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.165 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.164 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.163 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.162 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.161 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.160 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.159 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.158 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.157 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.156 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.155 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.153 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.152 app/controllers/renalware/pd/adequacy_completions_controller.rb
renalware-core-2.0.151 app/controllers/renalware/pd/adequacy_completions_controller.rb