comparison config/application.rb @ 437:d31fe32da7a0

Finish updating to rails 5
author nanaya <me@myconan.net>
date Sat, 02 Jul 2016 17:04:25 +0900
parents 68eb23b52864
children a5eae5b07abf
comparison
equal deleted inserted replaced
436:72557a5310d9 437:d31fe32da7a0
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 "active_record/railtie" 6 require "active_record/railtie"
7 require "action_controller/railtie" 7 require "action_controller/railtie"
8 # require "action_mailer/railtie" 8 # require "action_mailer/railtie"
9 # require "active_resource/railtie"
10 require "sprockets/railtie" 9 require "sprockets/railtie"
11 require "rails/test_unit/railtie" 10 require "rails/test_unit/railtie"
12 11
13 require_relative "init_config" 12 require_relative "config_init"
14 suppress(LoadError) { require_relative "local_config" }
15 require_relative "default_config"
16 13
17 # If you precompile assets before deploying to production, use this line 14 # If you precompile assets before deploying to production, use this line
18 Bundler.require(*CONFIG["bundler_groups"]) 15 Bundler.require(*$cfg[:bundler_groups])
19 # If you want your assets lazily compiled in production, use this line 16 # If you want your assets lazily compiled in production, use this line
20 # Bundler.require(:default, :assets, Rails.env) 17 # Bundler.require(:default, :assets, Rails.env)
21 18
22 module Zeropaste 19 module Zeropaste
23 class Application < Rails::Application 20 class Application < Rails::Application