Sha256: f447a24a8e5e697703d7dbe821447e454d052bf98fa4aaa77f5573bd3eae31ea

Contents?: true

Size: 381 Bytes

Versions: 100

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/research"
require "attr_extras"

module Renalware
  module Research
    class StudyParticipantsQuery
      pattr_initialize [:study!, :options!]

      def call
        search.result
      end

      def search
        study.participants.joins(:patient).eager_load(:patient).ransack(options)
      end
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
renalware-core-2.0.137 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.136 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.135 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.134 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.133 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.132 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.131 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.130 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.129 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.128 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.127 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.126 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.125 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.124 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.123 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.121 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.120 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.119 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.118 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.117 app/models/renalware/research/study_participants_query.rb