diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2017-02-25 09:37:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-25 09:37:22 -0500 |
commit | b04473e51ec19537a0971c6cd921a86d16510f38 (patch) | |
tree | b4b8426809291057f4dcc93b460abf5e67cb514d | |
parent | 71152576cb80b7849895f48947689a750c07dffe (diff) | |
parent | 0d8256433acde8bebcbeb21cc1f7e3fa7524d961 (diff) | |
download | rails-b04473e51ec19537a0971c6cd921a86d16510f38.tar.gz rails-b04473e51ec19537a0971c6cd921a86d16510f38.tar.bz2 rails-b04473e51ec19537a0971c6cd921a86d16510f38.zip |
Merge pull request #28162 from dixpac/update-docs-Rails_AppGenerator
Improve docs for Rails::AppGenerator. [ci skip]
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 86326d98ed..442258c9d1 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -32,6 +32,14 @@ module Rails # 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 class AppBuilder def rakefile template "Rakefile" |