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.116 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.115 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.113 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.112 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.111 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.110 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.109 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.108 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.106 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.105 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.104 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.103 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.102 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.101 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.100 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.99 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.98 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.97 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.96 app/models/renalware/research/study_participants_query.rb
renalware-core-2.0.95 app/models/renalware/research/study_participants_query.rb