Permalink
Browse files

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

  • Loading branch information...
1 parent 94ed1e2 commit aafd4c0452170c2fd3c86b94b86026df7ecb7f7d @plentz plentz committed Sep 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -1575,7 +1575,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 aafd4c0

Please sign in to comment.