Skip to content

Commit

Permalink
include all metrics attribues in the submissions endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Oct 20, 2023
1 parent 37408c5 commit 3a93734
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helpers/submission_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def submission_include_params
if includes.find{|v| v.is_a?(Hash) && v.keys.include?(:contact)}
includes << {:contact=>[:name, :email]}
end

if includes.find{|v| v.is_a?(Hash) && v.keys.include?(:metrics)}
includes << LinkedData::Models::Metric.goo_attrs_to_load([:all])
end

includes
end

Expand Down

0 comments on commit 3a93734

Please sign in to comment.