diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-29 01:37:38 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-12-29 01:37:38 +0000 |
commit | ee1c6c2a7c50883574f1dfd3c72d16b19dadb950 (patch) | |
tree | ba71f6ad7c9a5fdbfeea003bad2bab86bf9f7077 /activeresource/lib | |
parent | 4e57ac35443759778bd6c1fcfd29e8bd85e9d15d (diff) | |
download | rails-ee1c6c2a7c50883574f1dfd3c72d16b19dadb950.tar.gz rails-ee1c6c2a7c50883574f1dfd3c72d16b19dadb950.tar.bz2 rails-ee1c6c2a7c50883574f1dfd3c72d16b19dadb950.zip |
generate prefix parameters if undefined
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/lib')
-rw-r--r-- | activeresource/lib/active_resource/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index 8c4d82c421..b9d6c1e610 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -101,6 +101,7 @@ module ActiveResource def query_string(options) # Omit parameters which appear in the URI path. + path unless defined?(@prefix_parameters) query_params = options.reject { |key, value| @prefix_parameters.include?(key) } # Accumulate a list of escaped key=value pairs for the given parameters. |