5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 01:51:41 +00:00
panel/config/application.rb

37 lines
1.1 KiB
Ruby
Raw Normal View History

2019-03-26 15:32:20 +00:00
# frozen_string_literal: true
2018-01-02 17:19:25 +00:00
require_relative 'boot'
2019-03-26 15:32:20 +00:00
require 'rails'
2018-01-02 17:19:25 +00:00
# Pick the frameworks you want:
2019-03-26 15:32:20 +00:00
require 'active_model/railtie'
require 'active_job/railtie'
require 'active_record/railtie'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'action_view/railtie'
2018-01-02 17:19:25 +00:00
# require "action_cable/engine"
2019-03-26 15:32:20 +00:00
require 'sprockets/railtie'
require 'rails/test_unit/railtie'
2018-01-02 17:19:25 +00:00
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Sutty
2019-07-12 17:11:24 +00:00
# Sutty!
2018-01-02 17:19:25 +00:00
class Application < Rails::Application
2019-07-12 17:11:24 +00:00
# Initialize configuration defaults for originally generated Rails
# version.
2018-01-02 17:19:25 +00:00
config.load_defaults 5.1
2019-07-12 17:11:24 +00:00
# Settings in config/environments/* take precedence over those
# specified here. Application configuration should go into files in
# config/initializers -- all .rb files in that directory are
# automatically loaded.
config.action_dispatch
.rescue_responses['Pundit::NotAuthorizedError'] = :forbidden
config.active_record.sqlite3.represent_boolean_as_integer = true
2018-01-02 17:19:25 +00:00
end
end