public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Some performance goodness for AM Validations.

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
clemens (author)
Tue Sep 02 01:54:58 -0700 2008
jeremy (committer)
Tue Sep 02 15:55:23 -0700 2008
commit  a377c9853c05904f76751f48d2d56ef564da51b0
tree    2ce46d9f97963e2be13e088380ae083897509d08
parent  b42f53ca1fa0af0fd9cc37e2765cd9c47b100065
...
79
80
81
82
83
 
 
84
85
86
...
79
80
81
 
 
82
83
84
85
86
0
@@ -79,8 +79,8 @@ module ActiveModel
0
           results = finder_class.with_exclusive_scope do
0
             connection.select_all(
0
               construct_finder_sql(
0
-                :select     => "#{attr_name}",
0
-                :from       => "#{finder_class.quoted_table_name}",
0
+                :select     => attr_name,
0
+                :from       => finder_class.quoted_table_name,
0
                 :conditions => [condition_sql, *condition_params]
0
               )
0
             )

Comments