Skip to content

Commit

Permalink
Update lib/oaken.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth authored Aug 22, 2023
1 parent 1f36df9 commit 9f9d349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oaken.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def update(id, **attributes)

def upsert(id, **attributes)
record = @type.new(id: id.hash, **super).tap(&:validate!)
@type.upsert(record.attributes)
@type.upsert(record.attributes, record_timestamps: true)
end
end

Expand Down

0 comments on commit 9f9d349

Please sign in to comment.