Module: ActiveStorageValidations::Matchers::Messageable

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

Instance Method Summary collapse

Instance Method Details

#initialize_messageableObject



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

def initialize_messageable
  @custom_message = nil
end

#with_message(custom_message) ⇒ Object



12
13
14
15
# File 'lib/active_storage_validations/matchers/concerns/messageable.rb', line 12

def with_message(custom_message)
  @custom_message = custom_message
  self
end