Skip to content

Commit

Permalink
Merge pull request #34617 from blahed/colorize-unpermitted-params
Browse files Browse the repository at this point in the history
Colorize the unpermitted params log message
  • Loading branch information
rafaelfranca committed Dec 5, 2018
2 parents d4ad9b2 + 8e25e9e commit 7849e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/log_subscriber.rb
Expand Up @@ -56,7 +56,7 @@ def send_data(event)
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

Expand Down

0 comments on commit 7849e56

Please sign in to comment.