Skip to content

Commit 9dcf21f

Browse files
author
Lorenzo Tello
committed
humanize field names in log entries
1 parent 9754001 commit 9dcf21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logga/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def default_creation_log_body(record)
6969
end
7070

7171
def default_change_log_body(record, field, old_value, new_value)
72-
"#{titleized_model_class_name(record)} #{field} set to #{new_value}"
72+
"#{titleized_model_class_name(record)} #{field.humanize(capitalize: false)} set to #{new_value}"
7373
end
7474

7575
def default_deletion_log_body(record)

0 commit comments

Comments
 (0)