diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-05-05 16:07:06 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-05-05 16:07:06 +0000 |
commit | a02f1b85f01c87848cfb02548a6e09654ee3e261 (patch) | |
tree | 84e8876e54e149b21f3c5fb1f593bed6b39b5d12 /actionwebservice/lib/action_web_service/scaffolding.rb | |
parent | 6c473eb410a959607ee5f4a5c8597b684f1827c0 (diff) | |
download | rails-a02f1b85f01c87848cfb02548a6e09654ee3e261.tar.gz rails-a02f1b85f01c87848cfb02548a6e09654ee3e261.tar.bz2 rails-a02f1b85f01c87848cfb02548a6e09654ee3e261.zip |
fix :delegated invocation in the scaffolding
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1285 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/scaffolding.rb')
-rw-r--r-- | actionwebservice/lib/action_web_service/scaffolding.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/actionwebservice/lib/action_web_service/scaffolding.rb b/actionwebservice/lib/action_web_service/scaffolding.rb index 0b2abaa59e..3befdc87fa 100644 --- a/actionwebservice/lib/action_web_service/scaffolding.rb +++ b/actionwebservice/lib/action_web_service/scaffolding.rb @@ -81,6 +81,9 @@ module ActionWebService new_request = @protocol.encode_action_pack_request(@scaffold_service.name, @scaffold_method.public_name, @method_request_xml) prepare_request(new_request, @scaffold_service.name, @scaffold_method.public_name) @request = new_request + if @scaffold_container.dispatching_mode != :direct + @request.parameters['action'] = @scaffold_service.name + end dispatch_web_service_request @method_response_xml = @response.body method_name, obj = @protocol.decode_response(@method_response_xml) @@ -215,11 +218,13 @@ module ActionWebService module WebServiceModel # :nodoc: class Container # :nodoc: attr :services + attr :dispatching_mode def initialize(real_container) @real_container = real_container + @dispatching_mode = @real_container.class.web_service_dispatching_mode @services = [] - if @real_container.class.web_service_dispatching_mode == :direct + if @dispatching_mode == :direct @services << Service.new(@real_container.controller_name, @real_container) else @real_container.class.web_services.each do |name, obj| |