Changeset 252
- Timestamp:
- 12/22/04 13:54:44 (4 years 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
r249 r252 1 1 *SVN* 2 3 * Added Base#clear_association_cache to empty all the cached associations #347 [Tobias Luetke] 2 4 3 5 * Added more informative exceptions in establish_connection #356 [bitsweat] trunk/activerecord/lib/active_record/associations.rb
r237 r252 33 33 super 34 34 base.extend(ClassMethods) 35 end 36 37 # Clears out the association cache 38 def clear_association_cache #:nodoc: 39 self.class.reflect_on_all_associations.to_a.each do |assoc| 40 instance_variable_set "@#{assoc.name}", nil 41 end 35 42 end 36 43