Skip to content

Commit

Permalink
Update CHANGELOG regarding paper-trail-gem#889
Browse files Browse the repository at this point in the history
  • Loading branch information
batter authored and aried3r committed Dec 14, 2020
1 parent 1265fa4 commit 91d8be8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
5 changes: 2 additions & 3 deletions lib/paper_trail/record_trail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,8 @@ def habtm_assoc_ids(habtm_assoc)

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

Expand Down

0 comments on commit 91d8be8

Please sign in to comment.