Skip to content

Commit

Permalink
update classification.rb in rails 5.2 Hash#reverse_merge! behavior ch…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 committed Nov 9, 2022
1 parent 98172a0 commit 9a80e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formatter/csv/classification.rb
Expand Up @@ -46,7 +46,7 @@ def subject_data
{}.tap do |subjects_and_metadata|
classification_subject_ids.map {|id| cache.subject(id) }.each do |subject|
retired_data = { retired: cache.retired?(subject.id, workflow.id) }
subjects_and_metadata[subject.id] = retired_data.reverse_merge!(subject.metadata)
subjects_and_metadata[subject.id] = retired_data.merge!(subject.metadata)
end
end.to_json
end
Expand Down

0 comments on commit 9a80e72

Please sign in to comment.