Module: ActiveStorageValidations::Matchers::AllowBlankable
- Extended by:
- ActiveSupport::Concern
- Included in:
- AspectRatioValidatorMatcher, BaseSizeValidatorMatcher, ContentTypeValidatorMatcher, DimensionValidatorMatcher, ProcessableImageValidatorMatcher
- Defined in:
- lib/active_storage_validations/matchers/concerns/allow_blankable.rb
Instance Method Summary collapse
Instance Method Details
#allow_blank ⇒ Object
12 13 14 15 |
# File 'lib/active_storage_validations/matchers/concerns/allow_blankable.rb', line 12 def allow_blank @allow_blank = true self end |
#initialize_allow_blankable ⇒ Object
8 9 10 |
# File 'lib/active_storage_validations/matchers/concerns/allow_blankable.rb', line 8 def initialize_allow_blankable @allow_blank = nil end |