Parent

Merb::Controller

Public Class Methods

_filter_params(params) click to toggle source

Filters parameters so they are not showed in logs

# File lib/merb-param-protection.rb, line 187
def self._filter_params(params)
  return params if self.log_params_args.nil?
  result = { }
  params.each do |k,v|
    result[k] = (self.log_params_args.include?(k.to_s) ? '[FILTERED]' : v)
  end
  result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.