diff options
author | Gaston Ramos <ramos.gaston@gmail.com> | 2010-09-13 17:33:58 -0300 |
---|---|---|
committer | Gaston Ramos <ramos.gaston@gmail.com> | 2010-09-27 15:25:33 -0300 |
commit | 823a8e6e66b6e63583f569fdbc2e9cffa9430bf8 (patch) | |
tree | 8e393cc544a64717f56ece5b0ac5111e4ea28199 /activeresource/lib | |
parent | 9363931f349d783058688c2c14a31856116125e0 (diff) | |
download | rails-823a8e6e66b6e63583f569fdbc2e9cffa9430bf8.tar.gz rails-823a8e6e66b6e63583f569fdbc2e9cffa9430bf8.tar.bz2 rails-823a8e6e66b6e63583f569fdbc2e9cffa9430bf8.zip |
- check prefix options in collection_path
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 911ae37b35..9442eba8af 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -665,6 +665,7 @@ module ActiveResource # # => /posts/5/comments.xml?active=1 # def collection_path(prefix_options = {}, query_options = nil) + check_prefix_options(prefix_options) prefix_options, query_options = split_options(prefix_options) if query_options.nil? "#{prefix(prefix_options)}#{collection_name}.#{format.extension}#{query_string(query_options)}" end |