Skip to content

Commit dab832f

Browse files
committed
set active job adapter to sidekiq + fixed rubocop warnings
1 parent 1be1ff4 commit dab832f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

config/application.rb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
Bundler.require(:default, Rails.env)
88

99
# load config.yaml preprocessed
10-
CONFIG ||= YAML::load(ERB.new(File.read("config/config.yml")).result)
10+
CONFIG ||= YAML.safe_load(ERB.new(File.read('config/config.yml')).result)
1111

1212
module T4c
1313
class Application < Rails::Application
14-
15-
# Settings in config/environments/* take precedence over those specified here.
16-
# Application configuration should go into files in config/initializers
17-
# -- all .rb files in that directory are automatically loaded.
18-
19-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
20-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
21-
# config.time_zone = 'Central Time (US & Canada)'
22-
23-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
24-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
25-
# config.i18n.default_locale = :de
26-
27-
config.autoload_paths += %W(#{config.root}/lib)
28-
config.assets.initialize_on_precompile = true
29-
config.available_locales = %w(en fr nl ru pl hr de ro)
14+
# Settings in config/environments/* take precedence over those specified here.
15+
# Application configuration should go into files in config/initializers
16+
# -- all .rb files in that directory are automatically loaded.
17+
18+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
19+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
20+
# config.time_zone = 'Central Time (US & Canada)'
21+
22+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
23+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
24+
# config.i18n.default_locale = :de
25+
26+
config.autoload_paths += %W[#{config.root}/lib]
27+
config.assets.initialize_on_precompile = true
28+
config.available_locales = %w[en fr nl ru pl hr de ro]
29+
config.active_job.queue_adapter = :sidekiq
3030
end
3131
end
3232

0 commit comments

Comments
 (0)