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.159 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.158 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.157 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.156 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.155 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.153 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.152 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.151 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.149 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.148 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.147 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.146 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.145 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.144 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.143 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.142 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.141 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.140 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.139 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.138 app/models/renalware/research/study_participants_query.rb