Sha256: 19c348ea4341a5b357a4d3a39e3f369cb2b2311a414b8320a7554b8aa9e7e991

Contents?: true

Size: 1.56 KB

Versions: 18

Compression:

Stored size: 1.56 KB

Contents

require_relative 'boot'

<% if include_all_railties? -%>
require 'rails/all'
<% else -%>
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
<%= comment_if :skip_active_record %>require "active_record/railtie"
require "action_controller/railtie"
<%= comment_if :skip_action_mailer %>require "action_mailer/railtie"
require "action_view/railtie"
<%= comment_if :skip_action_cable %>require "action_cable/engine"
<%= comment_if :skip_sprockets %>require "sprockets/railtie"
<%= comment_if :skip_test %>require "rails/test_unit/railtie"
<% end -%>

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

module <%= app_const_base %>
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults <%= Rails::VERSION::STRING.to_f %>

    # 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.
<%- if options[:api] -%>

    # 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
<%- elsif !depends_on_system_test? -%>

    # Don't generate system test files.
    config.generators.system_tests = nil
<%- end -%>
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.7.rc1 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.6.2 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.6.1 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.6 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.5 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.5.rc1 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.4 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.4.rc1 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.3 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.3.rc3 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.3.rc2 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.3.rc1 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.2 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.2.rc1 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.1 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.0 lib/rails/generators/rails/app/templates/config/application.rb
railties-5.1.0.rc2 lib/rails/generators/rails/app/templates/config/application.rb