Module: ActiveStorageValidations::Matchers::Contextable

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

Instance Method Summary collapse

Instance Method Details

#initialize_contextableObject



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