diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-06-01 17:14:14 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-06-01 17:14:14 +0000 |
commit | 4d1c87a069d0e13347f28ff9ce4db2427efe18b1 (patch) | |
tree | f62371534776b2cb8b531deae115027b83dc5961 /activeresource/lib/active_resource | |
parent | 846e8587273743b5cc46708b3c0f047bb501fe02 (diff) | |
download | rails-4d1c87a069d0e13347f28ff9ce4db2427efe18b1.tar.gz rails-4d1c87a069d0e13347f28ff9ce4db2427efe18b1.tar.bz2 rails-4d1c87a069d0e13347f28ff9ce4db2427efe18b1.zip |
pass the prefix_options to the instantiated record when using find without a specific id. Closes #8544 [alloy]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/lib/active_resource')
-rw-r--r-- | activeresource/lib/active_resource/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index a0e92dba72..3048aa5b89 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -161,7 +161,7 @@ module ActiveResource else prefix_options, query_options = split_options(options[:params]) path = collection_path(prefix_options, query_options) - instantiate_collection(connection.get(path, headers) || []) + instantiate_collection( (connection.get(path, headers) || []), prefix_options ) end end |