Module: Renalware::HD::Sessions::ProtocolSessionsQuery::Scopes
- Defined in:
- app/models/renalware/hd/sessions/protocol_sessions_query.rb
Instance Method Summary collapse
Instance Method Details
#for_patient(patient) ⇒ Object
26 27 28 |
# File 'app/models/renalware/hd/sessions/protocol_sessions_query.rb', line 26 def for_patient(patient) where(patient: patient) end |
#not_dna ⇒ Object
30 31 32 |
# File 'app/models/renalware/hd/sessions/protocol_sessions_query.rb', line 30 def not_dna where.not(type: Session::DNA.sti_name) end |