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



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

def call
  search.result
end

#searchObject



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

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