Skip to content

Commit

Permalink
prevent lang in url when config.translate is false
Browse files Browse the repository at this point in the history
This helps issue #549
#549
  • Loading branch information
markmoser authored and iNecas committed Nov 1, 2017
1 parent 26591d7 commit bf47106
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/apipie/apipies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def apipie_checksum
helper_method :heading

def get_language
return nil unless Apipie.configuration.translate
lang = Apipie.configuration.default_locale
[:resource, :method, :version].each do |par|
if params[par]
Expand Down

0 comments on commit bf47106

Please sign in to comment.