Ticket #9127: remove_duplicate_deprecation_message_url.diff
| File remove_duplicate_deprecation_message_url.diff, 1.5 kB (added by kampers, 1 year ago) |
|---|
-
activerecord/lib/active_record/associations.rb
old new 1142 1142 1143 1143 def configure_dependency_for_has_many(reflection) 1144 1144 if reflection.options[:dependent] == true 1145 ::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)1145 ::ActiveSupport::Deprecation.warn("The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead.", caller) 1146 1146 end 1147 1147 1148 1148 if reflection.options[:dependent] && reflection.options[:exclusively_dependent] … … 1151 1151 1152 1152 if reflection.options[:exclusively_dependent] 1153 1153 reflection.options[:dependent] = :delete_all 1154 ::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)1154 ::ActiveSupport::Deprecation.warn("The :exclusively_dependent option is deprecated and will be removed from Rails 2.0. Please use :dependent => :delete_all instead.", caller) 1155 1155 end 1156 1156 1157 1157 # See HasManyAssociation#delete_records. Dependent associations