Skip to content

Commit

Permalink
Apipie upgrade broke our docs page, because our files were generated …
Browse files Browse the repository at this point in the history
…with no locale and the latest version has the fix Apipie/apipie-rails#543 merged in, which now correctly defaults locale from the previous 'no idea use nil' to 'use the default_locale of the app', so it would try to find .en files and they did not exist. This will set our language to nil, so it looks for files without the .en, which do exist. Long term fix is to properly generate localized files, but it's not immediately clear to me how to do that.
  • Loading branch information
Marri committed Sep 1, 2017
1 parent c49f6f6 commit ebb76b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/initializers/apipie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
config.api_base_url = "/api/v1"
config.doc_base_url = "/docs"
config.api_controllers_matcher = "#{Rails.root}/app/controllers/api/**/*.rb"
config.show_all_examples = true
config.show_all_examples = true
config.default_locale = nil
end

0 comments on commit ebb76b2

Please sign in to comment.