Module: ActiveStorageValidations::Matchers::Contextable
- Extended by:
- ActiveSupport::Concern
- Included in:
- AspectRatioValidatorMatcher, AttachedValidatorMatcher, ContentTypeValidatorMatcher, DimensionValidatorMatcher, SizeValidatorMatcher
- Defined in:
- lib/active_storage_validations/matchers/concerns/contextable.rb
Instance Method Summary collapse
Instance Method Details
#initialize_contextable ⇒ Object
8 9 10 |
# File 'lib/active_storage_validations/matchers/concerns/contextable.rb', line 8 def initialize_contextable @context = nil end |
#on(context) ⇒ Object
12 13 14 15 |
# File 'lib/active_storage_validations/matchers/concerns/contextable.rb', line 12 def on(context) @context = context self end |