Module: ActiveStorageValidations::Matchers::ASVSpoofingProtectable
- Extended by:
- ActiveSupport::Concern
- Included in:
- ContentTypeValidatorMatcher
- Defined in:
- lib/active_storage_validations/matchers/shared/asv_spoofing_protectable.rb
Constant Summary collapse
- UNSET =
Object.new.freeze
Instance Method Summary collapse
Instance Method Details
#initialize_spoofing_protectable ⇒ Object
12 13 14 |
# File 'lib/active_storage_validations/matchers/shared/asv_spoofing_protectable.rb', line 12 def initialize_spoofing_protectable @spoofing_protection = UNSET end |
#spoofing_protection(value = true) ⇒ Object
16 17 18 19 |
# File 'lib/active_storage_validations/matchers/shared/asv_spoofing_protectable.rb', line 16 def spoofing_protection(value = true) @spoofing_protection = value self end |