diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 07:08:16 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-04 07:08:16 +0000 |
commit | e2a397ff8a5e58cdd40663342d0256ffd3c6324a (patch) | |
tree | 31888b9b50086325ac33b525338571c168c51b95 /activerecord/lib | |
parent | f3d6726dfa3efdb895a85f5e2f72e7b430b788e9 (diff) | |
download | rails-e2a397ff8a5e58cdd40663342d0256ffd3c6324a.tar.gz rails-e2a397ff8a5e58cdd40663342d0256ffd3c6324a.tar.bz2 rails-e2a397ff8a5e58cdd40663342d0256ffd3c6324a.zip |
Deprecation: use :dependent => :delete_all rather than :exclusively_dependent => true. Closes #6024.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | 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 b2ea56be4c..0771f26218 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -991,7 +991,7 @@ module ActiveRecord if reflection.options[:exclusively_dependent] reflection.options[:dependent] = :delete_all - #warn "The :exclusively_dependent option is deprecated. Please use :dependent => :delete_all instead.") + ::ActiveSupport::Deprecation.warn("The :exclusively_dependent option is deprecated and will be removed from Rails 2.0. Please use :dependent => :delete_all instead. See http://www.rubyonrails.org/deprecation for details.", caller) end # See HasManyAssociation#delete_records. Dependent associations |