1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/config/application.rb

47 lines
1.3 KiB
Ruby
Raw Normal View History

2018-11-22 14:58:12 -05:00
# frozen_string_literal: true
2018-11-22 14:33:08 -05:00
require_relative 'boot'
2018-11-22 15:00:34 -05:00
require 'rails'
2018-11-22 14:33:08 -05:00
# Pick the frameworks you want:
2018-11-22 15:00:34 -05:00
require 'active_model/railtie'
require 'active_job/railtie'
require 'active_record/railtie'
require 'active_storage/engine'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'action_view/railtie'
require 'action_cable/engine'
require 'sprockets/railtie'
2018-11-22 14:33:08 -05:00
# 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 Partynest
class Application < Rails::Application
2018-11-29 17:07:24 -05:00
FILTER_PARAMS = %i[
api_token
password
password_confirmation
secret
2018-11-29 17:44:18 -05:00
].freeze
2018-11-29 17:07:24 -05:00
2018-11-22 14:33:08 -05:00
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.2
2018-11-22 15:04:28 -05:00
# Settings in config/environments/* take precedence over those specified
# here. Application configuration can go into files in config/initializers
2018-11-22 14:33:08 -05:00
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
# Don't generate system test files.
config.generators.system_tests = nil
config.generators do |g|
g.factory_bot dir: 'factories'
end
2018-11-22 14:33:08 -05:00
end
end