1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Merge pull request #889 from owenr/record_trail_log_version_errors_bug

BUGFIX: Log version validation errors with ID from record
This commit is contained in:
Ben Atkins 2016-11-17 00:09:26 -05:00 committed by GitHub
commit c51aee5bba

View file

@ -421,7 +421,8 @@ module PaperTrail
def log_version_errors(version, action)
version.logger.warn(
"Unable to create version for #{action} of #{@record.class.name}##{id}: " +
"Unable to create version for #{action} of #{@record.class.name}#" +
"#{@record.id}: " +
version.errors.full_messages.join(", ")
)
end