Skip to content

Instantly share code, notes, and snippets.

@rocLv
Last active May 8, 2017 08:14
Show Gist options
  • Save rocLv/99014355b3eb102340fcbd3cb4768347 to your computer and use it in GitHub Desktop.
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.
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