Ticket #9127: remove_duplicate_deprecation_message_url.1-2-stable.diff
| File remove_duplicate_deprecation_message_url.1-2-stable.diff, 1.5 kB (added by kampers, 1 year ago) |
|---|
-
activerecord/lib/active_record/associations.rb
old new 1049 1049 1050 1050 def configure_dependency_for_has_many(reflection) 1051 1051 if reflection.options[:dependent] == true 1052 ::ActiveSupport::Deprecation.warn("The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead. See http://www.rubyonrails.org/deprecation for details.", caller)1052 ::ActiveSupport::Deprecation.warn("The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead.", caller) 1053 1053 end 1054 1054 1055 1055 if reflection.options[:dependent] && reflection.options[:exclusively_dependent] … … 1058 1058 1059 1059 if reflection.options[:exclusively_dependent] 1060 1060 reflection.options[:dependent] = :delete_all 1061 ::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)1061 ::ActiveSupport::Deprecation.warn("The :exclusively_dependent option is deprecated and will be removed from Rails 2.0. Please use :dependent => :delete_all instead.", caller) 1062 1062 end 1063 1063 1064 1064 # See HasManyAssociation#delete_records. Dependent associations