Skip to content

Commit

Permalink
Merge branch 'release/0.11.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Jan 20, 2014
2 parents 5a6efb9 + 4155590 commit 7834502
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ In the following file +config/routes.rb+ you can put this configuration
wash_out :my_other_service
end

mount WashoutBuilder::Engine => "/washout"

You can access the url +/washout+ and you will see a list with available services ( in our case there are only two : The RumbasController and MyOtherServiceController) with links to their documentation and where you can find the WSDL.

If you want to access directly the hml documentation that was generated for RumbasController you can do that by accessing url +/rumbas/doc+ And the WSDL will be available at +/rumbas/wsdl+
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class WashoutBuilderController < ActionController::Base
class WashoutBuilder::WashoutBuilderController < ActionController::Base
protect_from_forgery

def all
Expand Down
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
WashoutBuilder::Engine.routes.draw do
root :to =>"washout_builder#all"


end
2 changes: 1 addition & 1 deletion lib/washout_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Mapper
# Adds the routes for a SOAP endpoint at +controller+.
def wash_out(controller_name, options={})
options.reverse_merge!(@scope) if @scope

match "#{controller_name}/doc" => "#{controller_name}#_generate_doc", :via => :get, :format => false
original_wash_out(controller_name, options)

Expand Down
4 changes: 1 addition & 3 deletions lib/washout_builder/engine.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module WashoutBuilder
class Engine < ::Rails::Engine
isolate_namespace WashoutBuilder
initializer "wash_out.configuration" do |app|
app.routes.append do
match "/washout" => "washout_builder#all", :via => :get, :format => false
end
if app.config.wash_out[:catch_xml_errors]
app.config.middleware.insert_after 'ActionDispatch::ShowExceptions', WashOut::Middleware if defined?(WashOut::Middleware)
app.config.middleware.insert_after 'ActionDispatch::ShowExceptions', WashOut::Middlewares::Catcher if defined?(WashOut::Middlewares::Catcher)
Expand Down
2 changes: 1 addition & 1 deletion lib/washout_builder/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WashoutBuilder
VERSION = "0.11.4"
VERSION = "0.11.5"
end

0 comments on commit 7834502

Please sign in to comment.