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
187:   def self._filter_params(params)
188:     return params if self.log_params_args.nil?
189:     result = { }
190:     params.each do |k,v|
191:       result[k] = (self.log_params_args.include?(k.to_s) ? '[FILTERED]' : v)
192:     end
193:     result
194:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.