Skip to content

Commit 5878809

Browse files
committed
second heroku commit 1.0
1 parent 198582b commit 5878809

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
class ApplicationController < ActionController::API
3-
def fallback_index_html
4-
render :file => 'public/index.html'
5-
end
3+
64

75

86
def index

config/routes.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
resources :managers
1313
resources :companies
1414

15-
get '*path', to: "application#fallback_index_html", constraints: ->(request) do
16-
!request.xhr? && request.format.html?
17-
end
15+
1816

1917
end
2018
end

0 commit comments

Comments
 (0)