episode-185/vet/vendor/plugins/validation_reflection/lib/validation_reflection.rb
def remember_validation_metadata(validation_type, *attr_names)
        configuration = attr_names.last.is_a?(Hash) ? attr_names.pop : {}
        attr_names.each do |attr_name|
          write_inheritable_array :validations,
            [ ActiveRecord::Reflection::MacroReflection.new(validation_type, attr_name.to_sym, configuration, self) ]
        end
      end
# Returns an array of MacroReflection objects for all validations in the class
Returns an array of MacroReflection objects for all validations in the class
Returns an array of MacroReflection objects for all validations in the class
def remember_validation_metadata(validation_type, *attr_names)
        configuration = attr_names.last.is_a?(Hash) ? attr_names.pop : {}
        attr_names.each do |attr_name|
          write_inheritable_array :validations,
            [ ActiveRecord::Reflection::MacroReflection.new(validation_type, attr_name.to_sym, configuration, self) ]
        end
      end
def remember_validation_metadata ( validation_type , * attr_names ) configuration = attr_names . last . is_a? ( Hash ) ? attr_names . pop : { } attr_names . each do | attr_name | write_inheritable_array :validations , [ ActiveRecord :: Reflection :: MacroReflection . new ( validation_type , attr_name . to_sym , configuration , self ) ] end end
Returns an array of MacroReflection objects for all validations in the class
Returns an array of MacroReflection objects for all validations in the class
validation_type
attr_names