app/models/cqm/measure.rb in cqm-models-3.1.0 vs app/models/cqm/measure.rb in cqm-models-3.1.1

- old
+ new

@@ -71,10 +71,10 @@ # but don't care about the inverse relationship (e.g. we never really care # about getting all the measures from a ValueSet object, # hence the 'inverse_of: nil') has_and_belongs_to_many :value_sets, inverse_of: nil - has_many :calculation_results, class_name: 'CQM::IndividualResult' + has_many :calculation_results, class_name: 'CQM::IndividualResult', inverse_of: :measure def all_stratifications population_sets.flat_map(&:stratifications) end