aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-13 19:14:53 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-13 19:14:53 +0000
commit9b45e09b2a5c0c24457485f6ee5293416262570a (patch)
treedd5b84e5269d848d77a07f31ad793232b8bdd6f8 /activerecord
parent922f817a5a369adc8cb0dd53f332785ee20a667a (diff)
downloadrails-9b45e09b2a5c0c24457485f6ee5293416262570a.tar.gz
rails-9b45e09b2a5c0c24457485f6ee5293416262570a.tar.bz2
rails-9b45e09b2a5c0c24457485f6ee5293416262570a.zip
Fixed bug with reloading associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/associations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index 6ba7b80102..c51210ef1f 100755
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -462,7 +462,7 @@ module ActiveRecord
# Resets the list of dependencies loaded (typically to be called by the end of a request), so when require_association is
# called for that dependency it'll be loaded anew.
def reset_associations_loaded
- associations_loaded = []
+ self.associations_loaded = []
end
private