aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
diff options
context:
space:
mode:
authorMarc G Gauthier <marcg.gauthier@gmail.com>2011-08-19 11:11:17 +0200
committerMarc G Gauthier <marcg.gauthier@gmail.com>2011-08-19 11:11:17 +0200
commit03b96306176bfc328929cb422ae61d37ee071310 (patch)
treeeafcef15b64de39e5730e3422268d8951830c85a /activeresource/lib
parent12c0ea954ae1245013902c485d5d3e794381e3df (diff)
downloadrails-03b96306176bfc328929cb422ae61d37ee071310.tar.gz
rails-03b96306176bfc328929cb422ae61d37ee071310.tar.bz2
rails-03b96306176bfc328929cb422ae61d37ee071310.zip
Do not try to use as a parameter elements that are not acceptable
Diffstat (limited to 'activeresource/lib')
-rw-r--r--activeresource/lib/active_resource/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 693bd0592e..f88772a7ff 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -955,7 +955,7 @@ module ActiveResource
prefix_options, query_options = {}, {}
(options || {}).each do |key, value|
- next if key.blank?
+ next if key.blank? || [Fixnum, Date, Time, Float].include?(key.class)
(prefix_parameters.include?(key.to_sym) ? prefix_options : query_options)[key.to_sym] = value
end