Sha256: 2fa4774cf52409d6fd56325f2f5dbabed56e752223615b7a33500aa5a4592297

Contents?: true

Size: 1.19 KB

Versions: 37

Compression:

Stored size: 1.19 KB

Contents

# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.

ENGINE_ROOT = File.expand_path('..', __dir__)
ENGINE_PATH = File.expand_path('../lib/<%= namespaced_name -%>/engine', __dir__)
<% if with_dummy_app? -%>
APP_PATH = File.expand_path('../<%= dummy_path -%>/config/application', __dir__)
<% end -%>

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])

<% 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"
<%= comment_if :skip_active_storage %>require "active_storage/engine"
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 "rails/engine/commands"

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
railties-6.1.7.10 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.9 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.8 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.7 lib/rails/generators/rails/plugin/templates/bin/rails.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.6 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.5 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.4 lib/rails/generators/rails/plugin/templates/bin/rails.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.3 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.2 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7.1 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.7 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.6.1 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.6 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.5.1 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.5 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.4.7 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.4.6 lib/rails/generators/rails/plugin/templates/bin/rails.tt
railties-6.1.4.5 lib/rails/generators/rails/plugin/templates/bin/rails.tt