Soc/config/application.rb

21 lines
510 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 SummonPlayer
class Application < Rails::Application
config.load_defaults 7.0
2023-08-18 16:20:31 +00:00
config.time_zone = "London"
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