Class: ActiveRecord::Encryption::AutoFilteredParameters
- Inherits:
-
Object
- Object
- ActiveRecord::Encryption::AutoFilteredParameters
- Defined in:
- lib/active_record/encryption/auto_filtered_parameters.rb
Instance Method Summary collapse
- #enable ⇒ Object
-
#initialize(app) ⇒ AutoFilteredParameters
constructor
A new instance of AutoFilteredParameters.
Constructor Details
#initialize(app) ⇒ AutoFilteredParameters
Returns a new instance of AutoFilteredParameters.
6 7 8 9 10 11 12 |
# File 'lib/active_record/encryption/auto_filtered_parameters.rb', line 6 def initialize(app) @app = app @attributes_by_class = Concurrent::Map.new @collecting = true install_collecting_hook end |
Instance Method Details
#enable ⇒ Object
14 15 16 17 |
# File 'lib/active_record/encryption/auto_filtered_parameters.rb', line 14 def enable apply_collected_attributes @collecting = false end |