Soc/config/application.rb

22 lines
551 B
Ruby
Raw Normal View History

2023-08-18 16:20:31 +00:00
# frozen_string_literal: true
2023-08-18 16:20:31 +00:00
require_relative "boot"
require "rails/all"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Soc
class Application < Rails::Application
2024-08-08 10:36:26 +00:00
config.load_defaults 7.2
2023-08-18 16:20:31 +00:00
config.time_zone = "London"
config.autoload_lib(ignore: %w(assets tasks))
config.action_view.field_error_proc = proc do |html_tag, _instance|
html_tag.gsub(/<(\w*) /, '<\1 class="field_with_errors"').html_safe
end
end
end