class AppBuilder
Ruby on Rails 6.1.7.10
Since v3.0.20The application builder allows you to override elements of the application generator without being forced to reverse the operations of the default generator.
This allows you to override entire operations, like the creation of the Gemfile, README, or JavaScript files, without needing to know exactly what those operations do so you can create another template action.
class CustomAppBuilder < Rails::AppBuilder def test @generator.gem "rspec-rails", group: [:development, :test] run "bundle install" generate "rspec:install" end end
Inherits from
Methods (defined here)
- # app
- # bin
- # bin_when_updating
- # config
- # configru
- # config_target_version
- # config_when_updating
- # credentials
- # database_yml
- # db
- # gemfile
- # gitattributes
- # gitignore
- # lib
- # log
- # master_key
- # package_json
- # public_directory
- # rakefile
- # readme
- # ruby_version
- # storage
- # system_test
- # test
- # tmp
- # vendor
- # version_control
- # yarn_when_updating
Methods (inherited)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
From ActiveRecord::TestFixtures (4)
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended