Skip to content

Commit

Permalink
Use << instead of insert, per Rails/skipsmodelvalidations rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
eddierubeiz committed Jun 22, 2022
1 parent 385924e commit 69d00d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/qa/linked_data/graph_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def subjects_for_object_value(graph:, predicate:, object_value:)
def deep_copy(graph:)
new_graph = RDF::Graph.new
graph.statements.each do |st|
new_graph.insert(st.dup)
new_graph << st.dup
end
new_graph
end
Expand Down

0 comments on commit 69d00d7

Please sign in to comment.