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_messageable ⇒ Object
8 9 10 |
# File 'lib/active_storage_validations/matchers/concerns/messageable.rb', line 8 def @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 () @custom_message = self end |