2023-08-18 16:20:31 +00:00
|
|
|
# frozen_string_literal: true
|
2023-08-08 16:48:09 +00:00
|
|
|
|
2023-08-18 16:20:31 +00:00
|
|
|
require_relative "boot"
|
2023-08-08 16:48:09 +00:00
|
|
|
require "rails/all"
|
|
|
|
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
|
|
# you've limited to :test, :development, or :production.
|
|
|
|
Bundler.require(*Rails.groups)
|
|
|
|
|
2023-09-17 11:24:54 +00:00
|
|
|
module Soc
|
2023-08-08 16:48:09 +00:00
|
|
|
class Application < Rails::Application
|
|
|
|
config.load_defaults 7.0
|
|
|
|
|
2023-08-18 16:20:31 +00:00
|
|
|
config.time_zone = "London"
|
2023-08-18 18:08:49 +00:00
|
|
|
|
|
|
|
config.action_view.field_error_proc = proc do |html_tag, _instance|
|
|
|
|
html_tag.gsub(/<(\w*) /, '<\1 class="field_with_errors"').html_safe
|
|
|
|
end
|
2023-08-08 16:48:09 +00:00
|
|
|
end
|
|
|
|
end
|