Class: ReeAudit::FilterParams

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_audit/package/ree_audit/functions/filter_params.rb

Constant Summary collapse

FILTERED =
'FILTERED'
TRUNCATED_DEPTH =
'[TRUNCATED_DEPTH]'

Instance Method Summary collapse

Instance Method Details

#call(params) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/ree_lib/packages/ree_audit/package/ree_audit/functions/filter_params.rb', line 24

def call(params)
  filtered = filter_value(
    params, 1, config.filter_words, config.max_params_depth
  )

  limit_size(filtered, config.max_params_bytes)
end