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 authored Nov 17, 2016
2 parents e4dea2b + 6f9fa1e commit c51aee5
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 @@ -421,7 +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}##{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 c51aee5

Please sign in to comment.