aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-03-19 16:37:14 -0400
committerGitHub <noreply@github.com>2019-03-19 16:37:14 -0400
commitf88ea5fd7413c01796707626c890927088b88cd8 (patch)
tree514d679cf3139db5374aaba4d976e17821eb6e49 /guides
parentfbc2e670f1ae64a5eeeee876b71cf325616d0578 (diff)
parentd82839b0eec704e9ddf278fe886448f2059d693b (diff)
downloadrails-f88ea5fd7413c01796707626c890927088b88cd8.tar.gz
rails-f88ea5fd7413c01796707626c890927088b88cd8.tar.bz2
rails-f88ea5fd7413c01796707626c890927088b88cd8.zip
Merge pull request #35656 from larouxn/revert-34277-remove-javascripts-javascripts_engine-options-for-generators
Revert "Remove `javascripts` and `javascript_engine` options for generators"
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index a61ba5dc9f..54a74dd649 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -204,6 +204,8 @@ The full set of methods that can be used in this block are as follows:
* `helper` defines whether or not to generate helpers. Defaults to `true`.
* `integration_tool` defines which integration tool to use to generate integration tests. Defaults to `:test_unit`.
* `system_tests` defines which integration tool to use to generate system tests. Defaults to `:test_unit`.
+* `javascripts` turns on the hook for JavaScript files in generators. Used in Rails for when the `scaffold` generator is run. Defaults to `true`.
+* `javascript_engine` configures the engine to be used (for eg. coffee) when generating assets. Defaults to `:js`.
* `orm` defines which orm to use. Defaults to `false` and will use Active Record by default.
* `resource_controller` defines which generator to use for generating a controller when using `rails generate resource`. Defaults to `:controller`.
* `resource_route` defines whether a resource route definition should be generated