Module: ActiveStorageValidations::Matchers::ASVMessageable

Extended by:
ActiveSupport::Concern
Included in:
AspectRatioValidatorMatcher, AttachedValidatorMatcher, BaseSizeValidatorMatcher, ContentTypeValidatorMatcher, DimensionValidatorMatcher, LimitValidatorMatcher, ProcessableImageValidatorMatcher
Defined in:
lib/active_storage_validations/matchers/shared/asv_messageable.rb

Instance Method Summary collapse

Instance Method Details

#initialize_messageableObject



10
11
12
# File 'lib/active_storage_validations/matchers/shared/asv_messageable.rb', line 10

def initialize_messageable
  @custom_message = nil
end

#with_message(custom_message) ⇒ Object



14
15
16
17
# File 'lib/active_storage_validations/matchers/shared/asv_messageable.rb', line 14

def with_message(custom_message)
  @custom_message = custom_message
  self
end