diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-19 11:04:38 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-19 11:04:38 +0000 |
commit | 5462358cd397583f3b4cfcdf2933b80dbc48d353 (patch) | |
tree | 76a1da3d0859755c0b1af53c031d6689940739df /activerecord | |
parent | 0dd497853a5375caa217237e067346ad2b3d89c2 (diff) | |
download | rails-5462358cd397583f3b4cfcdf2933b80dbc48d353.tar.gz rails-5462358cd397583f3b4cfcdf2933b80dbc48d353.tar.bz2 rails-5462358cd397583f3b4cfcdf2933b80dbc48d353.zip |
Fixed that :get, :post, and the others should take a flash array as the third argument just like process #1144 [rails@cogentdude.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 59eb437c45..5f206f5472 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -146,6 +146,9 @@ module ActiveRecord # Please note that because eager loading is fetching both models and associations in the same grab, it doesn't make sense to use the # :limit property and it will be ignored if attempted. # + # Also have in mind that since the eager loading is pulling from multiple tables, you'll have to disambiguate any column references + # in both conditions and orders. So :order => "posts.id DESC" will work while :order => "id DESC" will not. + # # == Modules # # By default, associations will look for objects within the current module scope. Consider: |