feat: customized page 404

This commit is contained in:
Colin Darie 2024-03-28 09:45:05 +01:00
parent fe508c0a73
commit 7dcd4ba538
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
11 changed files with 149 additions and 77 deletions

View file

@ -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',

View file

@ -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'