module Sequel::Plugins::ValidateAssociatedContext::InstanceMethods

Private Instance Methods

associated_object_valid?(reflection, obj) click to toggle source

Whether the associated object is valid, using the validation context of the current object.

   # File lib/sequel/plugins/validate_associated_context.rb
46 def associated_object_valid?(reflection, obj)
47   obj.valid?(:validation_context=>validation_context)
48 end