Skip to content

Commit

Permalink
Merge pull request #93 from canadaduane/swagger_config
Browse files Browse the repository at this point in the history
Fix Ruby Request class: no access to inject_format on Class object
  • Loading branch information
fehguy committed Sep 13, 2013
2 parents 5ef5fa7 + 389765c commit 9367774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/ruby/swagger/request.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module Swagger
# Stick a .{format} placeholder into the path if there isn't
# one already or an actual format like json or xml
# e.g. /words/blah => /words.{format}/blah
if Swagger::Configuration.inject_format
if Swagger.configuration.inject_format
unless ['.json', '.xml', '{format}'].any? {|s| p.downcase.include? s }
p = p.sub(/^(\/?\w+)/, "\\1.#{format}")
end
Expand Down

0 comments on commit 9367774

Please sign in to comment.