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

Changeset 4680

Show
Ignore:
Timestamp:
08/05/06 22:35:58 (2 years ago)
Author:
nzkoz
Message:

Formally deprecate rich associations. [Koz]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r4670 r4680  
    11*SVN* 
     2 
     3* Formally deprecate rich associations.  [Koz] 
    24 
    35* Fixed that default timezones for new / initialize should uphold utc setting #5709 [daniluk@yahoo.com] 
  • trunk/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb

    r4379 r4680  
    6868        end 
    6969      end       
    70  
     70       
     71      # Deprecated as of Rails 1.2.   If your associations require attributes 
     72      # you should be using has_many :through 
    7173      def push_with_attributes(record, join_attributes = {}) 
    7274        raise_on_type_mismatch(record) 
     
    8082        self 
    8183      end 
     84      deprecate :push_with_attributes 
    8285 
    8386      alias :concat_with_attributes :push_with_attributes