Update CHANGELOG regarding #889
This commit is contained in:
parent
6e34dbe750
commit
0086ee201b
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue