Fetching contributors…
Cannot retrieve contributors at this time
72 lines (54 sloc) 2.89 KB
require File.expand_path('../boot', __FILE__)
require 'csv'
require 'rails/all'
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
module Ringsail
class Application < Rails::Application
# insert rack cors first
# config.middleware.insert_before 0, "Rack::Cors" do
# allow do
# origins '*'
# resource '/api/*', :headers => :any, :methods => [:get, :post, :options]
# resource '/swagger_docs/*', :headers => :any, :methods => [:get, :post, :options]
# end
# end
# 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.
# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Activate observers that should always be running.
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
# Configure sensitive parameters which will be filtered from the log file.
# We are using SSO, so this should be unecessary. Confirm and then remove.
config.filter_parameters += [:password, :password_confirmation]
# Enable the asset pipeline
config.assets.enabled = true
config.assets.initialize_on_precompile = false
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
config.assets.precompile += %w( admin.css admin.js public.css public.js swagger.css swagger.js )
# Put compiled JS and CSS assets in a proxy-friendly path
#config.assets.prefix = "/social-media/social-media-registry/accounts/assets"
# Added by Jake, 6/22/2016: tag logging for Docker
config.log_level = :debug
config.log_tags = [:subdomain, :uuid]
config.logger =