Changeset 7873
- Timestamp:
- 10/14/07 05:32:57 (1 year ago)
- Files:
-
- trunk/activerecord/CHANGELOG (modified) (1 diff)
- trunk/activerecord/lib/active_record/associations.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r7872 r7873 1 1 *SVN* 2 3 * Add notes to documentation regarding attr_readonly behavior with counter caches and polymorphic associations. Closes #9835 [saimonmoore, rick] 2 4 3 5 * Observers can observe model names as symbols properly now. Closes #9869 [queso] trunk/activerecord/lib/active_record/associations.rb
r7824 r7873 776 776 # is used on the associate class (such as a +Post+ class). You can also specify a custom counter cache column by providing 777 777 # a column name instead of a +true+/+false+ value to this option (e.g., <tt>:counter_cache => :my_custom_counter</tt>.) 778 # Note: Specifying a counter_cache will add it to that model's list of readonly attributes using #attr_readonly. 778 779 # * <tt>:include</tt> - specify second-order associations that should be eager loaded when this object is loaded. 779 780 # * <tt>:polymorphic</tt> - specify this association is a polymorphic association by passing +true+. 781 # Note: If you've enabled the counter cache, then you may want to add the counter cache attribute 782 # to the attr_readonly list in the associated classes (e.g. class Post; attr_readonly :comments_count; end). 780 783 # 781 784 # Option examples: