Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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  
    11421142 
    11431143        def configure_dependency_for_has_many(reflection) 
    11441144          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) 
    11461146          end 
    11471147 
    11481148          if reflection.options[:dependent] && reflection.options[:exclusively_dependent] 
     
    11511151 
    11521152          if reflection.options[:exclusively_dependent] 
    11531153            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) 
    11551155          end 
    11561156 
    11571157          # See HasManyAssociation#delete_records.  Dependent associations