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
|
|
|
|
class Application < Rails::Application
|
|
|
|
# Initialize configuration defaults for originally generated Rails version.
|
|
|
|
config.load_defaults 5.1
|
|
|
|
|
|
|
|
# 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.
|
2019-02-16 18:17:18 +00:00
|
|
|
config.action_dispatch.rescue_responses['Pundit::NotAuthorizedError'] = :forbidden
|
2018-01-02 17:19:25 +00:00
|
|
|
end
|
|
|
|
end
|