aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/lib
diff options
context:
space:
mode:
authorLeon Breedt <bitserf@gmail.com>2005-04-03 23:12:34 +0000
committerLeon Breedt <bitserf@gmail.com>2005-04-03 23:12:34 +0000
commit2cfe309dc498bedaa7ca78c16d1270c359f70cdd (patch)
tree7521b555bdfa1407fec303f6fbda58e27a079746 /actionwebservice/lib
parentedcaa2e5f76263ba7d0179c5d5d2de9d45932c93 (diff)
downloadrails-2cfe309dc498bedaa7ca78c16d1270c359f70cdd.tar.gz
rails-2cfe309dc498bedaa7ca78c16d1270c359f70cdd.tar.bz2
rails-2cfe309dc498bedaa7ca78c16d1270c359f70cdd.zip
don't use SyncEnumerator, its far too slow to be used in something frequently called
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1085 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib')
-rw-r--r--actionwebservice/lib/action_web_service/casting.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionwebservice/lib/action_web_service/casting.rb b/actionwebservice/lib/action_web_service/casting.rb
index ce90c463d8..113b24a93c 100644
--- a/actionwebservice/lib/action_web_service/casting.rb
+++ b/actionwebservice/lib/action_web_service/casting.rb
@@ -1,6 +1,5 @@
require 'time'
require 'date'
-require 'generator'
module ActionWebService # :nodoc:
module Casting # :nodoc:
@@ -30,7 +29,8 @@ module ActionWebService # :nodoc:
def cast_expects(api_method, params) # :nodoc:
return [] if api_method.expects.nil?
- SyncEnumerator.new(params, api_method.expects).map{ |r| cast(r[0], r[1]) }
+ i = -1
+ api_method.expects.map{ |type| cast(params[i+=1], type) }
end
def cast_returns(api_method, return_value) # :nodoc: