Class: Renalware::Research::StudyParticipantsQuery

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/research/study_participants_query.rb

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
# File 'app/models/renalware/research/study_participants_query.rb', line 11

def call
  search.result
end

#searchObject



15
16
17
# File 'app/models/renalware/research/study_participants_query.rb', line 15

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