Module: ActiveStorageValidations::Matchers::AllowBlankable

Extended by:
ActiveSupport::Concern
Included in:
AspectRatioValidatorMatcher, ContentTypeValidatorMatcher, DimensionValidatorMatcher, SizeValidatorMatcher
Defined in:
lib/active_storage_validations/matchers/concerns/allow_blankable.rb

Instance Method Summary collapse

Instance Method Details

#allow_blankObject



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_blankableObject



8
9
10
# File 'lib/active_storage_validations/matchers/concerns/allow_blankable.rb', line 8

def initialize_allow_blankable
  @allow_blank = nil
end