Mercurial > zeropaste
comparison config/application.rb @ 459:07d6c6639adf
Upgrade to rails 5.2. RIP code style.
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 14 Apr 2018 04:19:52 +0900 |
parents | a5eae5b07abf |
children | b1ef80121c79 |
comparison
equal
deleted
inserted
replaced
458:1c6a056269e6 | 459:07d6c6639adf |
---|---|
3 # To allow setting environment variable ZP_DATABASE_URL instead of DATABASE_URL. | 3 # To allow setting environment variable ZP_DATABASE_URL instead of DATABASE_URL. |
4 ENV["DATABASE_URL"] = ENV["ZP_DATABASE_URL"] if ENV["ZP_DATABASE_URL"] | 4 ENV["DATABASE_URL"] = ENV["ZP_DATABASE_URL"] if ENV["ZP_DATABASE_URL"] |
5 | 5 |
6 require_relative "config_init" | 6 require_relative "config_init" |
7 | 7 |
8 require "active_model/railtie" | |
9 # require "active_job/railtie" | |
8 require "active_record/railtie" | 10 require "active_record/railtie" |
11 # require "active_storage/engine" | |
9 require "action_controller/railtie" | 12 require "action_controller/railtie" |
10 # require "action_mailer/railtie" | 13 # require "action_mailer/railtie" |
14 require "action_view/railtie" | |
15 # require "action_cable/engine" | |
11 require "sprockets/railtie" | 16 require "sprockets/railtie" |
12 require "rails/test_unit/railtie" | 17 require "rails/test_unit/railtie" |
13 | 18 |
14 # If you precompile assets before deploying to production, use this line | 19 # If you precompile assets before deploying to production, use this line |
15 Bundler.require(*$cfg[:bundler_groups]) | 20 Bundler.require(*$cfg[:bundler_groups]) |
56 | 61 |
57 # No need to initialize application when precompiling assets | 62 # No need to initialize application when precompiling assets |
58 config.assets.initialize_on_precompile = false | 63 config.assets.initialize_on_precompile = false |
59 | 64 |
60 config.action_view.field_error_proc = proc { |html| html } | 65 config.action_view.field_error_proc = proc { |html| html } |
66 | |
67 config.load_defaults 5.0 | |
61 end | 68 end |
62 end | 69 end |