2018-01-02 17:19:25 +00:00
|
|
|
require_relative 'boot'
|
|
|
|
|
|
|
|
require "rails"
|
|
|
|
# Pick the frameworks you want:
|
|
|
|
require "active_model/railtie"
|
|
|
|
require "active_job/railtie"
|
2018-04-27 20:07:53 +00:00
|
|
|
require "active_record/railtie"
|
2018-01-02 17:19:25 +00:00
|
|
|
require "action_controller/railtie"
|
|
|
|
require "action_mailer/railtie"
|
|
|
|
require "action_view/railtie"
|
|
|
|
# require "action_cable/engine"
|
|
|
|
require "sprockets/railtie"
|
|
|
|
require "rails/test_unit/railtie"
|
|
|
|
|
|
|
|
# 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
|