Skip to content

Commit 3e9fe1b

Browse files
committed
Merge pull request Apipie#93 from iNecas/fix-not-found
Fix handling empty documentation
2 parents eedbf96 + 17bfe3e commit 3e9fe1b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/controllers/apipie/apipies_controller.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ def index
2525
end
2626

2727
format.html do
28+
@versions = Apipie.available_versions
29+
@doc = @doc[:docs]
2830
if @doc[:resources].blank?
2931
render "getting_started" and return
3032
end
31-
32-
@versions = Apipie.available_versions
33-
@doc = @doc[:docs]
3433
@resource = @doc[:resources].first if params[:resource].present?
3534
@method = @resource[:methods].first if params[:method].present?
3635

0 commit comments

Comments
 (0)