Skip to content

Commit

Permalink
Merge pull request #357 from eddierubeiz/do_not_use_insert
Browse files Browse the repository at this point in the history
Use << instead of insert, per `Rails/skipsmodelvalidations` rubocop
  • Loading branch information
jrochkind authored Jun 22, 2022
2 parents 385924e + 69d00d7 commit bfae87d
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 bfae87d

Please sign in to comment.