Class: Bugno::Filter::Params
- Inherits:
-
Object
- Object
- Bugno::Filter::Params
- Defined in:
- lib/bugno/filter/params.rb
Constant Summary collapse
- SKIPPED_CLASSES =
[::Tempfile].freeze
- ATTACHMENT_CLASSES =
%w[ActionDispatch::Http::UploadedFile Rack::Multipart::UploadedFile].freeze
- SCRUB_ALL =
:scrub_all
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(*args) ⇒ Object
12 13 14 |
# File 'lib/bugno/filter/params.rb', line 12 def self.call(*args) new.call(*args) end |
.scrub_value ⇒ Object
16 17 18 |
# File 'lib/bugno/filter/params.rb', line 16 def self.scrub_value '[FILTERED]' end |
Instance Method Details
#call(options = {}) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/bugno/filter/params.rb', line 20 def call( = {}) params = [:params] return {} unless params @scrubbed_object_ids = {} config = [:config] extra_fields = [:extra_fields] whitelist = [:whitelist] || [] scrub(params, (config, extra_fields, whitelist)) end |