Module: Auth::Sanitizer::FilteredAttributes::InitializerMethods

Defined in:
lib/auth/sanitizer/filtered_attributes.rb

Overview

Initializer hook that snapshots the thing filter for this object.

The snapshot captures both the class-level filtered attribute names and the current Auth::Sanitizer.filtered_label value.

Instance Method Summary collapse

Instance Method Details

#initialize(*args, &block) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/auth/sanitizer/filtered_attributes.rb', line 36

def initialize(*args, &block)
  super(*args, &block)
  @thing_filter = ThingFilter.new(
    self.class.filtered_attribute_names,
    label: Auth::Sanitizer.filtered_label,
  )
end