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

61 lines
1.5 KiB
Ruby
Raw Normal View History

2018-11-22 19:58:12 +00:00
# frozen_string_literal: true
2018-11-22 19:33:08 +00:00
require_relative 'boot'
2018-11-22 20:00:34 +00:00
require 'rails'
2018-11-22 19:33:08 +00:00
# Pick the frameworks you want:
2018-11-22 20:00:34 +00: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 19:33:08 +00:00
# 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 22:07:24 +00:00
FILTER_PARAMS = %i[
api_token
2018-12-03 21:03:28 +00:00
confirmation_token
2018-12-12 02:04:13 +00:00
guest_token
2018-11-29 22:07:24 +00:00
password
password_confirmation
2018-12-03 21:03:28 +00:00
reset_password_token
2018-11-29 22:07:24 +00:00
secret
2018-12-03 21:03:28 +00:00
unlock_token
2018-11-29 22:44:18 +00:00
].freeze
2018-11-29 22:07:24 +00:00
def settings(name)
2018-12-09 03:56:06 +00:00
config_for("settings/#{name}").deep_symbolize_keys
end
2018-11-22 19:33:08 +00:00
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.2
2018-12-05 19:43:37 +00:00
# Fully qualified domain name.
config.site_domain = 'libertarian-party.com'
2018-12-06 17:43:28 +00:00
# Email which all mail is set from.
2018-12-06 17:39:47 +00:00
config.noreply_email_address = "no-reply@#{config.site_domain}"
2018-12-06 17:43:28 +00:00
config.noreply_email_contact =
"Libertarian party of Russia <#{config.noreply_email_address}>"
2018-12-05 19:43:37 +00:00
2018-12-07 13:44:51 +00:00
# Use Sidekiq as ActiveJob adapter.
config.active_job.queue_adapter = :sidekiq
config.generators do |g|
2018-12-06 20:12:01 +00:00
g.assets false
g.helper false
2018-12-11 10:59:28 +00:00
g.system_tests nil
2018-12-06 20:12:01 +00:00
g.factory_bot dir: 'factories'
end
2018-11-22 19:33:08 +00:00
end
end