2015-06-13 05:56:32 -04:00
|
|
|
* Make it possible to customize the executable inside rerun snippets.
|
|
|
|
|
|
|
|
*Yves Senn*
|
|
|
|
|
2015-05-14 17:46:29 -04:00
|
|
|
* Add support for API only apps.
|
|
|
|
Middleware stack was slimmed down and it has only the needed
|
|
|
|
middleware for API apps & generators generates the right files,
|
|
|
|
folders and configurations.
|
|
|
|
|
|
|
|
*Santiago Pastorino & Jorge Bejar*
|
|
|
|
|
2015-06-02 10:16:36 -04:00
|
|
|
* Make generated scaffold functional tests work inside engines.
|
|
|
|
|
|
|
|
*Yuji Yaginuma*
|
|
|
|
|
2015-05-26 07:52:10 -04:00
|
|
|
* Generator a `.keep` file in the `tmp` folder by default as many scripts
|
|
|
|
assume the existence of this folder and most would fail if it is absent.
|
|
|
|
|
|
|
|
See #20299.
|
|
|
|
|
|
|
|
*Yoong Kang Lim*, *Sunny Juneja*
|
|
|
|
|
2015-05-04 15:55:23 -04:00
|
|
|
* `config.static_index` configures directory `index.html` filename
|
|
|
|
|
|
|
|
Set `config.static_index` to serve a static directory index file not named
|
|
|
|
`index`. E.g. to serve `main.html` instead of `index.html` for directory
|
|
|
|
requests, set `config.static_index` to `"main"`.
|
|
|
|
|
|
|
|
*Eliot Sykes*
|
|
|
|
|
2015-05-06 03:58:25 -04:00
|
|
|
* `bin/setup` uses built-in rake tasks (`log:clear`, `tmp:clear`).
|
|
|
|
|
|
|
|
*Mohnish Thallavajhula*
|
|
|
|
|
2015-05-04 03:02:36 -04:00
|
|
|
* Fix mailer previews with attachments by using the mail gem's own API to
|
|
|
|
locate the first part of the correct mime type.
|
|
|
|
|
|
|
|
Fixes #14435.
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2015-04-22 14:44:04 -04:00
|
|
|
* Remove sqlite support from `rails dbconsole`.
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
* Rename `railties/bin` to `railties/exe` to match the new Bundler executables
|
|
|
|
convention.
|
2015-04-12 16:20:34 -04:00
|
|
|
|
2015-04-11 12:44:27 -04:00
|
|
|
*Islam Wazery*
|
2015-04-12 16:20:34 -04:00
|
|
|
|
2015-04-15 02:13:14 -04:00
|
|
|
* Print `bundle install` output in `rails new` as soon as it's available.
|
2015-03-20 14:00:17 -04:00
|
|
|
|
|
|
|
Running `rails new` will now print the output of `bundle install` as
|
|
|
|
it is available, instead of waiting until all gems finish installing.
|
|
|
|
|
|
|
|
*Max Holder*
|
|
|
|
|
2015-03-27 12:42:52 -04:00
|
|
|
* Respect `pluralize_table_names` when generating fixture file.
|
2015-03-26 21:08:04 -04:00
|
|
|
|
|
|
|
Fixes #19519.
|
|
|
|
|
|
|
|
*Yuji Yaginuma*
|
|
|
|
|
2015-03-18 10:27:55 -04:00
|
|
|
* Add a new-line to the end of route method generated code.
|
|
|
|
|
|
|
|
We need to add a `\n`, because we cannot have two routes
|
|
|
|
in the same line.
|
|
|
|
|
|
|
|
*arthurnn*
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
* Add `rake initializers`.
|
2015-03-13 12:41:21 -04:00
|
|
|
|
2015-03-20 18:51:01 -04:00
|
|
|
This task prints out all defined initializers in the order they are invoked
|
|
|
|
by Rails. This is helpful for debugging issues related to the initialization
|
|
|
|
process.
|
2015-03-13 12:41:21 -04:00
|
|
|
|
|
|
|
*Naoto Kaneko*
|
|
|
|
|
2015-03-20 18:51:01 -04:00
|
|
|
* Created rake restart task. Restarts your Rails app by touching the
|
2015-02-17 01:11:16 -05:00
|
|
|
`tmp/restart.txt`.
|
|
|
|
|
|
|
|
Fixes #18876.
|
|
|
|
|
|
|
|
*Hyonjee Joo*
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
* Add `config/initializers/active_record_belongs_to_required_by_default.rb`.
|
2015-02-13 21:24:54 -05:00
|
|
|
|
|
|
|
Newly generated Rails apps have a new initializer called
|
|
|
|
`active_record_belongs_to_required_by_default.rb` which sets the value of
|
2015-03-22 02:18:18 -04:00
|
|
|
the configuration option `config.active_record.belongs_to_required_by_default`
|
2015-02-13 21:24:54 -05:00
|
|
|
to `true` when ActiveRecord is not skipped.
|
|
|
|
|
|
|
|
As a result, new Rails apps require `belongs_to` association on model
|
|
|
|
to be valid.
|
|
|
|
|
|
|
|
This initializer is *not* added when running `rake rails:update`, so
|
|
|
|
old apps ported to Rails 5 will work without any change.
|
|
|
|
|
|
|
|
*Josef Šimánek*
|
|
|
|
|
2015-02-18 13:35:51 -05:00
|
|
|
* `delete` operations in configurations are run last in order to eliminate
|
|
|
|
'No such middleware' errors when `insert_before` or `insert_after` are added
|
|
|
|
after the `delete` operation for the middleware being deleted.
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
Fixes #16433.
|
2015-02-18 13:35:51 -05:00
|
|
|
|
|
|
|
*Guo Xiang Tan*
|
|
|
|
|
2015-02-06 14:41:42 -05:00
|
|
|
* Newly generated applications get a `README.md` in Markdown.
|
|
|
|
|
|
|
|
*Xavier Noria*
|
|
|
|
|
Remove documentation tasks
This patch removes the tasks doc:app, doc:rails, and doc:guides.
In our experience applications do not generate APIs using doc:app.
Methods may be certainly documented for maintainers, annotated
with YARD tags, etc. but that is intended to be read with the
source code, not in a separate website. Then, teams also have
typically selected topics written down in Markdown files, or in
a GitHub wiki... that kind of thing.
If a team absolutely needs to generate application documentation
for internal purposes, they can still easily write their own task.
Regarding doc:rails and doc:guides, we live in 2015. We are used
to go to online docs all the time. If you really want access to the
API offline RubyGems generates it for every Rails component unless
you tell it not to, and you can checkout the Rails source code to
read the guides as Markdown, or download them for a Kindle reader.
All in all, maintaining this code does not seem to be worthwhile
anymore.
As a consequence of this, guides (+3 MB uncompressed) won't be
distributed with the rails gem anymore. Of course, guides and API
are going to be still part of releases, since documentation is
maintained alongside code and tests.
Also, time permitting, this will allow us to experiment with novel
ways to generate documentation in the Rails docs server, since
right now we were constrained by being able to generate them in
the user's environment.
2015-02-06 14:06:29 -05:00
|
|
|
* Remove the documentation tasks `doc:app`, `doc:rails`, and `doc:guides`.
|
|
|
|
|
|
|
|
*Xavier Noria*
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
* Force generated routes to be inserted into `config/routes.rb`.
|
2015-02-05 12:47:36 -05:00
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2015-04-29 03:01:15 -04:00
|
|
|
* Don't remove all line endings from `config/routes.rb` when revoking scaffold.
|
2015-02-03 17:47:59 -05:00
|
|
|
|
|
|
|
Fixes #15913.
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2015-01-27 17:59:48 -05:00
|
|
|
* Rename `--skip-test-unit` option to `--skip-test` in app generator
|
|
|
|
|
|
|
|
*Melanie Gilman*
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
* Add the `method_source` gem to the default Gemfile for apps.
|
2015-01-13 12:23:09 -05:00
|
|
|
|
|
|
|
*Sean Griffin*
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
* Drop old test locations from `rake stats`:
|
|
|
|
|
2015-01-09 04:54:11 -05:00
|
|
|
- test/functional
|
|
|
|
- test/unit
|
|
|
|
|
|
|
|
*Ravil Bayramgalin*
|
|
|
|
|
2015-01-09 04:52:23 -05:00
|
|
|
* Update `rake stats` to correctly count declarative tests
|
|
|
|
as methods in `_test.rb` files.
|
|
|
|
|
|
|
|
*Ravil Bayramgalin*
|
|
|
|
|
2015-01-04 09:51:07 -05:00
|
|
|
* Remove deprecated `test:all` and `test:all:db` tasks.
|
|
|
|
|
2015-01-04 10:35:05 -05:00
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
2015-01-04 09:45:54 -05:00
|
|
|
* Remove deprecated `Rails::Rack::LogTailer`.
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
2015-01-04 09:42:30 -05:00
|
|
|
* Remove deprecated `RAILS_CACHE` constant.
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
2015-01-04 09:39:12 -05:00
|
|
|
* Remove deprecated `serve_static_assets` configuration.
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
2013-12-21 01:09:52 -05:00
|
|
|
* Use local variables in `_form.html.erb` partial generated by scaffold.
|
|
|
|
|
|
|
|
*Andrew Kozlov*
|
|
|
|
|
2015-04-22 08:44:30 -04:00
|
|
|
* Add `config/initializers/callback_terminator.rb`.
|
2014-12-24 03:58:19 -05:00
|
|
|
|
|
|
|
Newly generated Rails apps have a new initializer called
|
|
|
|
`callback_terminator.rb` which sets the value of the configuration option
|
|
|
|
`config.active_support.halt_callback_chains_on_return_false` to `false`.
|
|
|
|
|
|
|
|
As a result, new Rails apps do not halt callback chains when a callback
|
|
|
|
returns `false`; only when they are explicitly halted with `throw(:abort)`.
|
|
|
|
|
|
|
|
The terminator is *not* added when running `rake rails:update`, so returning
|
|
|
|
`false` will still work on old apps ported to Rails 5, displaying a
|
|
|
|
deprecation warning to prompt users to update their code to the new syntax.
|
|
|
|
|
|
|
|
*claudiob*
|
|
|
|
|
2015-01-02 21:01:30 -05:00
|
|
|
* Generated fixtures won't use the id when generated with references attributes.
|
|
|
|
|
|
|
|
*Pablo Olmos de Aguilera Corradini*
|
|
|
|
|
2014-12-31 08:10:26 -05:00
|
|
|
* Add `--skip-action-mailer` option to the app generator.
|
|
|
|
|
|
|
|
*claudiob*
|
|
|
|
|
2014-12-26 12:29:53 -05:00
|
|
|
* Autoload any second level directories called `app/*/concerns`.
|
|
|
|
|
|
|
|
*Alex Robbin*
|
|
|
|
|
2014-11-28 12:00:06 -05:00
|
|
|
Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/railties/CHANGELOG.md) for previous changes.
|