episode-185/vet/vendor/plugins/validation_reflection/lib/validation_reflection.rb
def reflect_on_validations_for(attr_name)
        attr_name = attr_name.to_sym
        reflect_on_all_validations.select do |reflection|
          reflection.name == attr_name
        end
      end
# Returns an array of MacroReflection objects for all validations defined for the field +attr_name+.
Returns an array of MacroReflection objects for all validations defined for the field +attr_name+.
Returns an array of MacroReflection objects for all validations defined for the field + attr_name + .
def reflect_on_validations_for(attr_name)
        attr_name = attr_name.to_sym
        reflect_on_all_validations.select do |reflection|
          reflection.name == attr_name
        end
      end
def reflect_on_validations_for ( attr_name ) attr_name = attr_name . to_sym reflect_on_all_validations . select do | reflection | reflection . name == attr_name end end
Returns an array of MacroReflection objects for all validations defined for the field +attr_name+.
Returns an array of MacroReflection objects for all validations defined for the field + attr_name + .
attr_name