class AppBuilder
Ruby on Rails 8.1.2
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
- # cifiles
- # config
- # configru
- # config_target_version
- # config_when_updating
- # credentials
- # credentials_diff_enroll
- # database_yml
- # db
- # devcontainer
- # dockerfiles
- # gemfile
- # gitattributes
- # gitignore
- # lib
- # log
- # master_key
- # node_version
- # public_directory
- # rakefile
- # readme
- # rubocop
- # ruby_version
- # script
- # storage
- # system_test
- # test
- # tmp
- # vendor
- # version_control
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!
- # with
- # with_options
From ActiveSupport::NumericWithFormat
(2)
- # to_formatted_s
- # to_fs