Sha256: 6af528fc907ce2d9c6c24c8f511d04a563eb68c9d0fb3a729434928f7f798853
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
require File.expand_path('../boot', __FILE__) require 'rack/cors' require 'rails/all' Bundler.require(*Rails.groups) require "devise_token_auth" module Dummy 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. # Set Time.zone 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 # allow cross origin requests config.middleware.use Rack::Cors do allow do origins '*' resource '*', :headers => :any, :expose => ['Authorization'], :methods => [:get, :post, :options, :delete, :put] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems