method

unpermitted_parameters

Importance_0
unpermitted_parameters(event) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/log_subscriber.rb, line 56
    def unpermitted_parameters(event)
      debug do
        unpermitted_keys = event.payload[:keys]
        display_unpermitted_keys = unpermitted_keys.map { |e| ":#{e}" }.join(", ")
        context = event.payload[:context].map { |k, v| "#{k}: #{v}" }.join(", ")
        color("Unpermitted parameter#{'s' if unpermitted_keys.size > 1}: #{display_unpermitted_keys}. Context: { #{context} }", RED)
      end
    end
Register or log in to add new notes.