Skip to content

Commit

Permalink
fetch quoted attributes once
Browse files Browse the repository at this point in the history
  • Loading branch information
chikamichi committed Jul 30, 2009
1 parent d83b182 commit 69f09e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -2967,7 +2967,7 @@ def create
connection.empty_insert_statement(self.class.table_name)
else
"INSERT INTO #{self.class.quoted_table_name} " +
"(#{quoted_column_names.join(', ')}) " +
"(#{quoted_column_names(quoted_attributes).join(', ')}) " +
"VALUES(#{quoted_attributes.values.join(', ')})"
end

Expand Down

0 comments on commit 69f09e2

Please sign in to comment.