mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
33 lines
995 B
Ruby
33 lines
995 B
Ruby
require_relative "boot"
|
|
|
|
require "rails"
|
|
%w[
|
|
active_record/railtie
|
|
action_controller/railtie
|
|
action_view/railtie
|
|
action_mailer/railtie
|
|
active_job/railtie
|
|
].each do |railtie|
|
|
require railtie
|
|
end
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
# you've limited to :test, :development, or :production.
|
|
Bundler.require(*Rails.groups)
|
|
|
|
module Myapp
|
|
class Application < Rails::Application
|
|
# Load the defaults for whichever Rails version we are using, we need to
|
|
# ensure we work with all defaults.
|
|
config.load_defaults "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}"
|
|
|
|
# Configuration for the application, engines, and railties goes here.
|
|
#
|
|
# These settings can be overridden in specific environments using the files
|
|
# in config/environments, which are processed later.
|
|
#
|
|
# config.time_zone = "Central Time (US & Canada)"
|
|
# config.eager_load_paths << Rails.root.join("extras")
|
|
config.active_job.queue_adapter = :sidekiq
|
|
end
|
|
end
|