<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -53,7 +53,7 @@ module ActiveRecordExtensions # :nodoc:
     mattr_accessor  :reflected_validations,
                     :in_ignored_subvalidation
 
-    def included(base)
+    def included(base) # :nodoc:
       return if base.kind_of?(::ActiveRecordExtensions::ValidationReflection::ClassMethods)
       base.extend(ClassMethods)
     end
@@ -76,7 +76,7 @@ module ActiveRecordExtensions # :nodoc:
     #
     def install(base)
       @@reflected_validations.each do |validation_type|
-        next if base.respond_to?(&quot;#{validation_type}_with_reflection&quot;)
+        next if base.respond_to?(:&quot;#{validation_type}_with_reflection&quot;)
         ignore_subvalidations = false
         
         if validation_type.kind_of?(::Hash)
@@ -105,14 +105,13 @@ module ActiveRecordExtensions # :nodoc:
 
       # Returns an array of MacroReflection objects for all validations in the class
       def reflect_on_all_validations
-        read_inheritable_attribute(:validations) || []
+        self.read_inheritable_attribute(:validations) || []
       end
 
       # 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
         self.reflect_on_all_validations.select do |reflection|
-          reflection.name == attr_name
+          reflection.name == attr_name.to_sym
         end
       end
 </diff>
      <filename>lib/validation_reflection.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>98c9701d134fbe48806ab31459567c4caa561ee9</id>
    </parent>
  </parents>
  <author>
    <name>Jonas Grimfelt</name>
    <email>grimen@gmail.com</email>
  </author>
  <url>http://github.com/redinger/validation_reflection/commit/3525830ed384aeb45e28e36a1a60b4a2c5bdc623</url>
  <id>3525830ed384aeb45e28e36a1a60b4a2c5bdc623</id>
  <committed-date>2009-10-02T03:46:10-07:00</committed-date>
  <authored-date>2009-10-02T03:46:10-07:00</authored-date>
  <message>Hiding self.include from RDoc, and final small touches.</message>
  <tree>e3f240b5996952c5cc8740191a7857007ae35981</tree>
  <committer>
    <name>Jonas Grimfelt</name>
    <email>grimen@gmail.com</email>
  </committer>
</commit>
