Skip to content

Commit

Permalink
IR::Target.load only accepts kwargs so double splat hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie authored and GilbertCherrie committed Jul 7, 2023
1 parent fcfd9c0 commit 5d4fff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ems_refresh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def self.get_target_objects(target, single_id = nil)
ids.uniq!

recs = if target_class <= InventoryRefresh::Target
ids.map { |x| InventoryRefresh::Target.load(x) }
ids.map { |x| InventoryRefresh::Target.load(**x) }
else
active_record_recs = target_class.where(:id => ids)
active_record_recs = active_record_recs.includes(:ext_management_system) unless target_class <= ExtManagementSystem
Expand Down

0 comments on commit 5d4fff8

Please sign in to comment.