diff options
author | Marc G Gauthier <marcg.gauthier@gmail.com> | 2011-08-19 11:11:17 +0200 |
---|---|---|
committer | Marc G Gauthier <marcg.gauthier@gmail.com> | 2011-08-19 11:11:17 +0200 |
commit | 03b96306176bfc328929cb422ae61d37ee071310 (patch) | |
tree | eafcef15b64de39e5730e3422268d8951830c85a /activeresource/lib | |
parent | 12c0ea954ae1245013902c485d5d3e794381e3df (diff) | |
download | rails-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.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 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 |