Skip to content

Commit

Permalink
fix action dispatch routesr
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Jun 19, 2016
1 parent f86fe48 commit a3f3f05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/washout_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
def wash_out(controller_name, options={})
if @scope
scope_frame = @scope.respond_to?(:frame) ? @scope.frame : @scope
options.each_with_index { |key, value| scope_frame[key] = value }
options.each { |key, value| scope_frame[key] = value }
controller_class_name = [scope_frame[:module], controller_name].compact.join("/").underscore
else
controller_class_name = controller_name.to_s.underscore
end

controller_class_name = [options[:module], controller_name].compact.join("/").underscore

match "#{controller_name}/soap_doc" => WashoutBuilder::Engine, via: :get,
defaults: { name: "#{controller_class_name}" },
format: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/washout_builder/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module VERSION
# the minor version of the gem
MINOR = 4
# the tiny version of the gem
TINY = 0
TINY = 1
# if the version should be a e
PRE = nil

Expand Down

0 comments on commit a3f3f05

Please sign in to comment.