Skip to content

Commit

Permalink
Merge pull request #889 from owenr/record_trail_log_version_errors_bug
Browse files Browse the repository at this point in the history
BUGFIX: Log version validation errors with ID from record
  • Loading branch information
batter committed Nov 29, 2016
1 parent 9621d18 commit ccaa291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/paper_trail/record_trail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ def add_transaction_id_to(data)

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
Expand Down

0 comments on commit ccaa291

Please sign in to comment.