Skip to content

Instantly share code, notes, and snippets.

Last active May 8, 2017 08:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rocLv/99014355b3eb102340fcbd3cb4768347 to your computer and use it in GitHub Desktop.
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.
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(',')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment