Last active
May 8, 2017 08:14
-
-
Save rocLv/99014355b3eb102340fcbd3cb4768347 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'boot' | |
require 'csv' | |
require 'rails/all' | |
# Require the gems listed in Gemfile, including any gems | |
# you've limited to :test, :development, or :production. | |
Bundler.require(*Rails.groups) | |
module Giant | |
class Application < Rails::Application | |
# Settings in config/environments/* take precedence over those specified here. | |
# Application configuration should go into files in config/initializers | |
# -- all .rb files in that directory are automatically loaded. | |
config.time_zone = 'Beijing' | |
config.active_record.default_timezone = :local | |
# config Control-Allow-Origin | |
# at config/application.rb | |
config.action_dispatch.default_headers = { | |
'Access-Control-Allow-Origin' => '*', | |
'Access-Control-Request-Method' => %w{GET POST OPTIONS}.join(',') | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment