Skip to content

Commit

Permalink
Project medications also filters out medications for deleted subjects…
Browse files Browse the repository at this point in the history
…, addresses #697.
  • Loading branch information
remomueller committed Mar 11, 2019
1 parent 3b0a0b1 commit 1142222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/medications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Medications
included do
# Relationships
has_many :medication_variables, -> { current.order("position nulls last") }
has_many :medications, -> { current }
has_many :medications, -> { current.joins(:subject).merge(Subject.current) }
has_many :medication_values
end
end

0 comments on commit 1142222

Please sign in to comment.