aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-10-22 00:12:15 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-10-22 00:12:15 +0300
commit24367edbe6dae8fa1878423254d445177540e739 (patch)
tree696ae3592a355261651b40b88673e582aa422979
parentb004e767e03f11eb7e13828a5efbe030eb861cb0 (diff)
downloadrails-24367edbe6dae8fa1878423254d445177540e739.tar.gz
rails-24367edbe6dae8fa1878423254d445177540e739.tar.bz2
rails-24367edbe6dae8fa1878423254d445177540e739.zip
Remove `javascripts` and `javascript_engine` options for generators
It is unused since #33079
-rw-r--r--guides/source/configuring.md2
-rw-r--r--railties/lib/rails/generators.rb2
2 files changed, 0 insertions, 4 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 812565b207..61bb35cf93 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -200,8 +200,6 @@ 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
diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb
index cd8f16e247..5e8cebc50a 100644
--- a/railties/lib/rails/generators.rb
+++ b/railties/lib/rails/generators.rb
@@ -54,8 +54,6 @@ module Rails
force_plural: false,
helper: true,
integration_tool: nil,
- javascripts: true,
- javascript_engine: :js,
orm: false,
resource_controller: :controller,
resource_route: true,