diff options
author | Diego Plentz <diego@plentz.org> | 2011-09-26 20:06:17 -0300 |
---|---|---|
committer | Diego Plentz <diego@plentz.org> | 2011-09-26 20:06:17 -0300 |
commit | aafd4c0452170c2fd3c86b94b86026df7ecb7f7d (patch) | |
tree | d8dd176ea6a4085eb55bed25dfa23beb9d275c92 /activerecord | |
parent | 94ed1e24956c5d6d3482517d10134938d37e837d (diff) | |
download | rails-aafd4c0452170c2fd3c86b94b86026df7ecb7f7d.tar.gz rails-aafd4c0452170c2fd3c86b94b86026df7ecb7f7d.tar.bz2 rails-aafd4c0452170c2fd3c86b94b86026df7ecb7f7d.zip |
fixing docs for delete_sql where quotes should be used in this example.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 9e7d609d19..0952ea2829 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1575,7 +1575,7 @@ module ActiveRecord # 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 |