Module: ActiveStorageValidations::Matchers::ASVContextable

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

Instance Method Summary collapse

Instance Method Details

#initialize_contextableObject



10
11
12
# File 'lib/active_storage_validations/matchers/shared/asv_contextable.rb', line 10

def initialize_contextable
  @context = nil
end

#on(context) ⇒ Object



14
15
16
17
# File 'lib/active_storage_validations/matchers/shared/asv_contextable.rb', line 14

def on(context)
  @context = context
  self
end