28 lines
1.1 KiB
Ruby
28 lines
1.1 KiB
Ruby
|
require_relative 'boot'
|
||
|
|
||
|
require 'rails/all'
|
||
|
|
||
|
# Require the gems listed in Gemfile, including any gems
|
||
|
# you've limited to :test, :development, or :production.
|
||
|
Bundler.require(*Rails.groups)
|
||
|
|
||
|
module Pastebinner
|
||
|
class Application < Rails::Application
|
||
|
# Initialize configuration defaults for originally generated Rails version.
|
||
|
config.load_defaults 6.0
|
||
|
# Settings in config/environments/* take precedence over those specified here.
|
||
|
# Application configuration can go into files in config/initializers
|
||
|
config.paths.add Rails.root.join('lib').to_s, eager_load: true
|
||
|
config.active_job.queue_adapter = :sidekiq
|
||
|
# -- all .rb files in that directory are automatically loaded after loading
|
||
|
# the framework and any gems in your application.
|
||
|
# uncomment the config block below to have environment vars set from a local_env.yml file.
|
||
|
# config.before_configuration do
|
||
|
# env_file = File.join(Rails.root, 'config', 'local_env.yml')
|
||
|
# YAML.load(File.open(env_file)).each do |key, value|
|
||
|
# ENV[key.to_s] = value
|
||
|
# end if File.exists?(env_file)
|
||
|
# end
|
||
|
end
|
||
|
end
|