Permalink
Browse files

fixing docs for delete_sql where quotes should be used in this example.

  • Loading branch information...
plentz authored and vijaydev committed Sep 26, 2011
1 parent 0b151a4 commit 0cebbf4e5042ae6d1e66cf68569483b3822baf9e
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -1571,7 +1571,7 @@ def belongs_to(name, options = {})
# has_and_belongs_to_many :categories, :join_table => "prods_cats"
# has_and_belongs_to_many :categories, :readonly => true
# has_and_belongs_to_many :active_projects, :join_table => 'developers_projects', :delete_sql =>
- # 'DELETE FROM developers_projects WHERE active=1 AND developer_id = #{id} AND project_id = #{record.id}'
+ # "DELETE FROM developers_projects WHERE active=1 AND developer_id = #{id} AND project_id = #{record.id}"
def has_and_belongs_to_many(name, options = {}, &extension)
Builder::HasAndBelongsToMany.build(self, name, options, &extension)
end

0 comments on commit 0cebbf4

Please sign in to comment.