| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | | |
While this avoids shell argument parsing, we still pass through
everything in our stack.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the user used the `bin/test` to execute the test, this file is
automatically loaded, so require is unnecessary.
https://github.com/rails/rails/blob/acea68de026ba657cb65c4dd0fc1f24ba67e1cf8/railties/lib/rails/plugin/test.rb#L4
However, when using `rake test`, an explicit require is required because
the above file is not loaded.
Fixes #30516
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Since ff30db1, warning is not show.
|
|\ \
| | |
| | | |
Support multiple versions arguments for `gem` method of Generators
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Without this, `dbconsole` raises an error as follwing:
```
RuntimeError: can't modify frozen String
railties/lib/rails/commands/dbconsole/dbconsole_command.rb:79:in `start'
```
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
yhirano55/fix_indentation_in_secrets_yaml_template
Fix indentation in the template for secrets
|
| | | | |
|
|/ / / |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Originally, it hard-coded pid file path. It can not be removed when customizing
pid file path.
But rake task can not get pid file path. Therefore, do not remove file in rake
task, makes it possible to judge whether it is restart from the argument of the
command and removes the file in server command.
Fixes #29306
|
| |
| |
| |
| | |
`SharedGeneratorTests`
|
| |
| |
| |
| | |
And enable `context_dependent` of Style/BracesAroundHashParameters cop.
|
| |
| |
| |
| | |
Test case for #30045
|
| |
| |
| |
| |
| | |
Add SharedGeneratorTests#application_path
This method will help to DRY in files app_generator_test.rb, plugin_generator_test.rb
|
| | |
|
|\ \
| | |
| | | |
Refactor `--api` option of the app generator
|
| | |
| | |
| | |
| | |
| | | |
It can't use JavaScript in api mode.
Action cable should be disabled by default.
|
|\ \ \
| | | |
| | | |
| | | | |
Optimize routes indentation
|
| |/ / |
|
| | | |
|
| | | |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | | |
Optimize indentation for generator actions
|
| | | |
|
|\ \ \
| | | |
| | | | |
Eager load controller actions to reduce response time of the first request
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
On the first request, ActionController::Base#action_methods computes
and memoized the list of available actions [1]. With this PR we move
this expensive operation into eager load step to reduce response time
of the first request served in production.
This also reduces the memory footprint when running on forking server
like Unicorn.
[1] https://github.com/rails/rails/blob/a3813dce9a0c950a4af7909111fa730a2622b1db/actionpack/lib/abstract_controller/base.rb#L66-L77
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
yhirano55/skip_unused_components_when_running_rails_command_in_plugin
Skip unused components when running `bin/rails` in Rails plugin
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove :sorted test order for isolated tests
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
Add git_source to Gemfile for plugin generator
|
| | |/ / / /
| |/| | | | |
|
| |_|_|/ /
|/| | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Improve app generator tests.
Ensure that generation `config/application.rb` is correct.
Ensure that generation `config/application.rb` is correct.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix engine command
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Fix non escaped character
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Deprecate support of older `config.ru`
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since Rails 4.0, `config.ru` generated by default uses instances of
`Rails.application`. Therefore, I think that it is good to deprecate
the old behavior.
Related: #9669
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add migrations per rails engine conventions
* Fix failing tests
|
|/ / /
| | |
| | |
| | | |
By default, apps only have the former set.
|
|\ \ \
| | | |
| | | | |
Add Active Storage to Rails
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The test was passing before because it was not being testes correctly.
Now we create a different engine that is loaded before the already
exising and we make sure that the first call for isolate_namespace is
what takes effect.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
What we want to test is that two different calls to isolate_namespace
with the same module doesn't change the original railtie. We can do that
defining two different railties.
We can't call in the application because this method is not supposed to
be called in an Application class.
|