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:
commit
c51aee5bba
1 changed files with 2 additions and 1 deletions
|
@ -421,7 +421,8 @@ module PaperTrail
|
||||||
|
|
||||||
def log_version_errors(version, action)
|
def log_version_errors(version, action)
|
||||||
version.logger.warn(
|
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(", ")
|
version.errors.full_messages.join(", ")
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue