feat: customized page 404
This commit is contained in:
parent
fe508c0a73
commit
7dcd4ba538
11 changed files with 149 additions and 77 deletions
|
@ -104,6 +104,8 @@ module TPS
|
|||
config.active_record.encryption.primary_key = Rails.application.secrets.active_record_encryption.fetch(:primary_key)
|
||||
config.active_record.encryption.key_derivation_salt = Rails.application.secrets.active_record_encryption.fetch(:key_derivation_salt)
|
||||
|
||||
config.exceptions_app = self.routes
|
||||
|
||||
# Copied from rgeo/activerecord-postgis-adapter
|
||||
ActiveRecord::SchemaDumper.ignore_tables |= [
|
||||
'geography_columns',
|
||||
|
|
|
@ -698,6 +698,8 @@ Rails.application.routes.draw do
|
|||
|
||||
resources :release_notes, only: [:index]
|
||||
|
||||
get '/404', to: 'errors#not_found'
|
||||
|
||||
if Rails.env.test?
|
||||
scope 'test/api_geo' do
|
||||
get 'regions' => 'api_geo_test#regions'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue