Module: ActiveStorageValidations::Matchers::Messageable
- Extended by:
- ActiveSupport::Concern
- Included in:
- AspectRatioValidatorMatcher, AttachedValidatorMatcher, BaseSizeValidatorMatcher, ContentTypeValidatorMatcher, DimensionValidatorMatcher, ProcessableImageValidatorMatcher
- 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 |