# This command will automatically be run when you run “quails” with Quails
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 ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' if File.exist?(ENV)
<% if include_all_railties? -%> require 'quails/all' <% else -%> require “quails” # 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” require “active_storage/engine” <%= comment_if :skip_action_cable %>require “action_cable/engine” <%= comment_if :skip_sprockets %>require “sprockets/railtie” <%= comment_if :skip_test %>require “quails/test_unit/railtie” <% end -%> require 'quails/engine/commands'