module Auth::Sanitizer::FilteredAttributes::InitializerMethods
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.
Public Class Methods
new(*args, &block)
click to toggle source
Calls superclass method
# File lib/auth/sanitizer/filtered_attributes.rb 36 def initialize(*args, &block) 37 super 38 @thing_filter = ThingFilter.new( 39 self.class.filtered_attribute_names, 40 label: Auth::Sanitizer.filtered_label 41 ) 42 end