Sha256: 4c3247dec906ab24f33b492457fab139da4dd42a0f29b7b0b8a21f0a94e26c4f

Contents?: true

Size: 1.55 KB

Versions: 34

Compression:

Stored size: 1.55 KB

Contents

require_relative 'boot'

def orm_module
  ENV['ORM_MODULE'] || 'sequel'
end

require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "action_controller/railtie"
require "action_view/railtie"

case orm_module
when 'sequel'
  require 'sequel-rails'
  require 'sequel_secure_password'
when 'activerecord'
  require 'active_record/railtie'
end

# require "active_storage/engine"
# require "action_mailer/railtie"
# require "action_cable/engine"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

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

    config.appmap.enabled = true if ENV['APPMAP'] == 'true' && !Rails.env.test?

    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration can go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded after loading
    # the framework and any gems in your application.

    # 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

    config.autoload_paths << File.join(Rails.root, "app/models/#{orm_module}")
  end
end

Version data entries

34 entries across 30 versions & 1 rubygems

Version Path
appmap-0.39.1 spec/fixtures/rails6_users_app/config/application.rb
appmap-0.39.1 spec/fixtures/rails5_users_app/config/application.rb
appmap-0.39.0 spec/fixtures/rails6_users_app/config/application.rb
appmap-0.39.0 spec/fixtures/rails5_users_app/config/application.rb
appmap-0.38.1 spec/fixtures/rails5_users_app/config/application.rb
appmap-0.38.1 spec/fixtures/rails6_users_app/config/application.rb
appmap-0.37.2 spec/fixtures/rails6_users_app/config/application.rb
appmap-0.37.2 spec/fixtures/rails5_users_app/config/application.rb
appmap-0.37.0 spec/fixtures/rails_users_app/config/application.rb
appmap-0.36.0 spec/fixtures/rails_users_app/config/application.rb
appmap-0.35.2 spec/fixtures/rails_users_app/config/application.rb
appmap-0.35.1 spec/fixtures/rails_users_app/config/application.rb
appmap-0.35.0 spec/fixtures/rails_users_app/config/application.rb
appmap-0.34.5 spec/fixtures/rails_users_app/config/application.rb
appmap-0.34.4 spec/fixtures/rails_users_app/config/application.rb
appmap-0.34.2 spec/fixtures/rails_users_app/config/application.rb
appmap-0.34.1 spec/fixtures/rails_users_app/config/application.rb
appmap-0.34.0 spec/fixtures/rails_users_app/config/application.rb
appmap-0.33.0 spec/fixtures/rails_users_app/config/application.rb
appmap-0.32.0 spec/fixtures/rails_users_app/config/application.rb