Sha256: 44fc47f26c46b2d1fc1747ab96899d657ea381f5112c7c99d97a9e4c8d8c9cd7

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

require_relative 'boot'

# Pick the frameworks you want:
# require "active_record/railtie"
require 'action_controller/railtie'
require 'action_view/railtie'
require 'action_mailer/railtie'
require 'active_job/railtie'
require 'action_cable/engine'
require 'rails/test_unit/railtie'
require 'sprockets/railtie'
require 'rack/cors'

Bundler.require(*Rails.groups)
require 't2_airtime'

module Dummy
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 5.1

    # 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.

    # Only loads a smaller set of middleware suitable for API only apps.
    # Middleware like session, flash, cookies can be added back manually.
    # Skip views, helpers and assets when generating a new resource.
    config.api_only = true

    # Rack::Cors provides support for Cross-Origin Resource Sharing (CORS)
    # for Rack compatible web applications.
    config.middleware.insert_before 0, Rack::Cors do
      allow do
        origins '*'
        resource '*',
                 headers: :any,
                 methods: %i[get post options]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
t2_airtime-0.5.0 spec/dummy/config/application.rb
t2_airtime-0.4.1 spec/dummy/config/application.rb
t2_airtime-0.4.0 spec/dummy/config/application.rb
t2_airtime-0.3.1 spec/dummy/config/application.rb