Skip to content

Commit

Permalink
Update merge method
Browse files Browse the repository at this point in the history
  • Loading branch information
aapomm committed Jun 26, 2024
1 parent f7ec2af commit 604b95b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/services/liquid_cached_assigns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def key?(key)
end

def merge(hash)
LiquidCachedAssigns.new(project: project).merge!(@assigns.merge(hash))
lca = LiquidCachedAssigns.new(project: project)
lca.assigns = @assigns.merge(hash)
lca
end

def merge!(hash)
Expand Down

0 comments on commit 604b95b

Please sign in to comment.