Skip to content

Commit 3736488

Browse files
committed
fix: Rambulance導入に伴う不要なルーティング設定を削除
1 parent ac24ce1 commit 3736488

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

config/environments/production.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# Full error reports are disabled.
1313
config.consider_all_requests_local = false
1414

15-
# 本番環境では例外を自前ルーティングへ
16-
config.exceptions_app = self.routes
17-
1815
# Turn on fragment caching in view templates.
1916
config.action_controller.perform_caching = true
2017

config/environments/test.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
config.consider_all_requests_local = true
2323
config.cache_store = :null_store
2424

25-
# テスト環境でも例外を自前ルーティングへ
26-
config.exceptions_app = self.routes
27-
2825
# Render exception templates for rescuable exceptions and raise for other exceptions.
2926
config.action_dispatch.show_exceptions = :rescuable
3027

config/routes.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
# For details on the DSL available within this file,
33
# see http://guides.rubyonrails.org/routing.html
44

5-
# Rambulance を開発/テスト環境でのみマウント
6-
if Rails.env.development? || Rails.env.test?
7-
mount Rambulance::Engine => "/"
8-
end
9-
105
root "home#show"
116

127
# Render legal documents by using Keiyaku CSS
@@ -110,10 +105,4 @@
110105

111106
# Check development sent emails
112107
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
113-
114-
# Rambulance がキャッチする /404, /422, /500
115-
match "/404", to: Rambulance::Engine, via: :all, defaults: { status_code: 404 }
116-
match "/422", to: Rambulance::Engine, via: :all, defaults: { status_code: 422 }
117-
match "/500", to: Rambulance::Engine, via: :all, defaults: { status_code: 500 }
118-
119108
end

0 commit comments

Comments
 (0)