# config/application.rbrequireFile.expand_path('../boot',__FILE__)require'rails/all'# Require the gems listed in Gemfile, including any gems# you've limited to :test, :development, or :production.Bundler.require(:default,Rails.env)ifFile.exists?(File.expand_path('../application.yml',__FILE__))config=YAML.load(File.read(File.expand_path('../application.yml',__FILE__)))config.merge!config.fetch(Rails.env,{})config.eachdo|key,value|ENV[key]||=value.to_sunlessvalue.kind_of?HashendendmoduleNewAppclassApplication<Rails::Application# ... endend