Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not pollute record changes when loading attributes for the first time
This is done as in rails >= 5.2 the lock! & with_lock methods now require that the record doesn't have any changes otherwise they'll raise an error. Apparently clear_attribute_changes receives an array of attributes which it should clear. https://apidock.com/rails/v5.2.3/ActiveModel/Dirty/clear_attribute_changes
- Loading branch information