Update CHANGELOG regarding #889

This commit is contained in:
Ben Atkins 2016-11-26 00:04:19 -05:00
parent 6e34dbe750
commit 0086ee201b
2 changed files with 4 additions and 3 deletions

View File

@ -24,6 +24,8 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
### Fixed
- [#889](https://github.com/airblade/paper_trail/pull/889) -
Fix warning message in instances when a version can't be persisted due to validation errors.
- [#868](https://github.com/airblade/paper_trail/pull/868) -
Fix usage of find_by_id when primary key is not id, affecting reifying certain records.

View File

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