|
7 | 7 | Bundler.require(:default, Rails.env) |
8 | 8 |
|
9 | 9 | # 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) |
11 | 11 |
|
12 | 12 | module T4c |
13 | 13 | 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 |
30 | 30 | end |
31 | 31 | end |
32 | 32 |
|
|
0 commit comments