mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
colorize the unpermitted params log message
This commit is contained in:
parent
6ca6478a67
commit
8e25e9e315
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ module ActionController
|
|||
def unpermitted_parameters(event)
|
||||
debug do
|
||||
unpermitted_keys = event.payload[:keys]
|
||||
"Unpermitted parameter#{'s' if unpermitted_keys.size > 1}: #{unpermitted_keys.map { |e| ":#{e}" }.join(", ")}"
|
||||
color("Unpermitted parameter#{'s' if unpermitted_keys.size > 1}: #{unpermitted_keys.map { |e| ":#{e}" }.join(", ")}", RED)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue