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

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)

Updated for current 1-2-stable branch

  • activerecord/lib/active_record/associations.rb

    old new  
    10491049 
    10501050        def configure_dependency_for_has_many(reflection) 
    10511051          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) 
    10531053          end 
    10541054 
    10551055          if reflection.options[:dependent] && reflection.options[:exclusively_dependent] 
     
    10581058 
    10591059          if reflection.options[:exclusively_dependent] 
    10601060            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) 
    10621062          end 
    10631063 
    10641064          # See HasManyAssociation#delete_records.  Dependent associations