aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
diff options
context:
space:
mode:
authorLeon Breedt <bitserf@gmail.com>2005-03-04 10:07:53 +0000
committerLeon Breedt <bitserf@gmail.com>2005-03-04 10:07:53 +0000
commitd43392a50b4f7023b13747a67c4a6aa85e4036c4 (patch)
tree66203f6fceae6c4d7489a10664fddc9afd9d53be /actionwebservice/lib/action_web_service/dispatcher/abstract.rb
parentb78283b3fcae6752e7f1698cc063eff6214d2104 (diff)
downloadrails-d43392a50b4f7023b13747a67c4a6aa85e4036c4.tar.gz
rails-d43392a50b4f7023b13747a67c4a6aa85e4036c4.tar.bz2
rails-d43392a50b4f7023b13747a67c4a6aa85e4036c4.zip
add action_web_service/test_invoke, will be used by for testing APIs in
a Rails project instance. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@830 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/dispatcher/abstract.rb')
-rw-r--r--actionwebservice/lib/action_web_service/dispatcher/abstract.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
index 641f291533..1df03d1777 100644
--- a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
+++ b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb
@@ -12,6 +12,14 @@ module ActionWebService # :nodoc:
base.send(:include, ActionWebService::Dispatcher::InstanceMethods)
end
+ def self.layered_service_name(public_method_name) # :nodoc:
+ if public_method_name =~ /^([^\.]+)\.(.*)$/
+ $1
+ else
+ nil
+ end
+ end
+
module InstanceMethods # :nodoc:
private
def invoke_web_service_request(protocol_request)