diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-07-31 06:55:25 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2010-07-31 06:55:33 -0400 |
commit | 4f63294b0f4a428ed4dff172067ec114b86a1c25 (patch) | |
tree | cbc4c138f101b1f1282da67a0852d65bbc9f3a81 /activerecord/lib/active_record/associations.rb | |
parent | 3d7099891f07395ed889e7da9e13b3ff9244d539 (diff) | |
download | rails-4f63294b0f4a428ed4dff172067ec114b86a1c25.tar.gz rails-4f63294b0f4a428ed4dff172067ec114b86a1c25.tar.bz2 rails-4f63294b0f4a428ed4dff172067ec114b86a1c25.zip |
fixing documentation just a little bit
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index f540aa7f25..9b9b843b42 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -114,7 +114,7 @@ module ActiveRecord autoload :HasOneAssociation, 'active_record/associations/has_one_association' autoload :HasOneThroughAssociation, 'active_record/associations/has_one_through_association' - # Clears out the association cache + # Clears out the association cache. def clear_association_cache #:nodoc: self.class.reflect_on_all_associations.to_a.each do |assoc| instance_variable_set "@#{assoc.name}", nil @@ -122,7 +122,7 @@ module ActiveRecord end private - # Gets the specified association instance if it responds to :loaded?, nil otherwise. + # Returns the specified association instance if it responds to :loaded?, nil otherwise. def association_instance_get(name) ivar = "@#{name}" if instance_variable_defined?(ivar) |