-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.rb
32 lines (24 loc) · 1.21 KB
/
application.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# frozen_string_literal: true
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 LoftHF
# Framework for the https://lofthf.study website.
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0
# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rails time:zones" for a list of tasks for finding time zone names. Default is UTC.
config.time_zone = "Eastern Time (US & Canada)"
# Ignores custom error DOM elements created by Rails.
config.action_view.field_error_proc = proc { |html_tag, _instance| html_tag }
# Add Slice models to autoload_paths.
config.autoload_paths << Rails.root.join("app", "models", "slice")
end
end