2014-02-05 07:32:38 +00:00
|
|
|
|
* Set `dump_schema_after_migration` config values in production.
|
|
|
|
|
|
|
|
|
|
Set `config.active_record.dump_schema_after_migration` as false
|
|
|
|
|
in the generated `config/environments/production.rb` file.
|
|
|
|
|
|
|
|
|
|
*Emil Soman*
|
|
|
|
|
|
2014-01-06 11:01:15 +00:00
|
|
|
|
* Added Thor-action for creation of migrations.
|
|
|
|
|
|
2014-02-06 10:43:16 +00:00
|
|
|
|
Fixes #13588, #12674.
|
2014-01-06 11:01:15 +00:00
|
|
|
|
|
|
|
|
|
*Gert Goet*
|
|
|
|
|
|
2014-01-25 21:12:28 +00:00
|
|
|
|
* Ensure that `bin/rails` is a file before trying to execute it.
|
|
|
|
|
|
|
|
|
|
Fixes #13825.
|
|
|
|
|
|
|
|
|
|
*bronzle*
|
|
|
|
|
|
2014-01-14 17:57:40 +00:00
|
|
|
|
* Use single quotes in generated files.
|
|
|
|
|
|
2014-01-15 21:26:00 +00:00
|
|
|
|
*Cristian Mircea Messel*, *Chulki Lee*
|
2014-01-13 19:11:15 +00:00
|
|
|
|
|
2014-01-13 17:30:48 +00:00
|
|
|
|
* Only lookup `config.log_level` for stdlib `::Logger` instances.
|
|
|
|
|
Assign it as is for third party loggers like `Log4r::Logger`.
|
|
|
|
|
|
|
|
|
|
Fixes #13421.
|
|
|
|
|
|
|
|
|
|
*Yves Senn*
|
|
|
|
|
|
2014-01-12 00:12:12 +00:00
|
|
|
|
* The `Gemfile` of new applications depends on SDoc ~> 0.4.0.
|
|
|
|
|
|
|
|
|
|
*Xavier Noria*
|
|
|
|
|
|
2014-01-12 21:24:28 +00:00
|
|
|
|
* `test_help.rb` now automatically checks/maintains your test database
|
2013-12-29 11:05:04 +00:00
|
|
|
|
schema. (Use `config.active_record.maintain_test_schema = false` to
|
|
|
|
|
disable.)
|
|
|
|
|
|
|
|
|
|
*Jon Leighton*
|
|
|
|
|
|
2013-12-23 19:34:11 +00:00
|
|
|
|
* Configure `secrets.yml` and `database.yml` to read configuration
|
|
|
|
|
from the system environment by default for production.
|
|
|
|
|
|
|
|
|
|
*José Valim*
|
|
|
|
|
|
2013-12-21 13:49:16 +00:00
|
|
|
|
* `config.assets.raise_runtime_errors` is set to true by default
|
|
|
|
|
|
|
|
|
|
This option has been introduced in
|
|
|
|
|
[sprockets-rails#100][https://github.com/rails/sprockets-rails/pull/100]
|
|
|
|
|
and defaults to true in new applications in development.
|
|
|
|
|
|
|
|
|
|
*Richard Schneeman*
|
|
|
|
|
|
2013-12-20 00:12:55 +00:00
|
|
|
|
* Generates `html` and `text` templates for mailers by default.
|
|
|
|
|
|
|
|
|
|
*Kassio Borges*
|
|
|
|
|
|
2013-12-17 17:40:13 +00:00
|
|
|
|
* Move `secret_key_base` from `config/initializers/secret_token.rb`
|
|
|
|
|
to `config/secrets.yml`.
|
|
|
|
|
|
|
|
|
|
`secret_key_base` is now saved in `Rails.application.secrets.secret_key_base`
|
|
|
|
|
and it fallbacks to the value of `config.secret_key_base` when it is not
|
|
|
|
|
present in `config/secrets.yml`.
|
|
|
|
|
|
|
|
|
|
`config/initializers/secret_token.rb` is not generated by default
|
|
|
|
|
in new applications.
|
|
|
|
|
|
|
|
|
|
*Guillermo Iguaran*
|
|
|
|
|
|
|
|
|
|
* Generate a new `secrets.yml` file in the `config` folder for new
|
|
|
|
|
applications. By default, this file contains the application's `secret_key_base`,
|
|
|
|
|
but it could also be used to store other secrets such as access keys for external
|
|
|
|
|
APIs.
|
|
|
|
|
|
|
|
|
|
The secrets added to this file will be accessible via `Rails.application.secrets`.
|
|
|
|
|
For example, with the following `secrets.yml`:
|
|
|
|
|
|
|
|
|
|
development:
|
|
|
|
|
secret_key_base: 3b7cd727ee24e8444053437c36cc66c3
|
|
|
|
|
some_api_key: SOMEKEY
|
|
|
|
|
|
|
|
|
|
`Rails.application.secrets.some_api_key` will return `SOMEKEY` in the development
|
|
|
|
|
environment.
|
|
|
|
|
|
|
|
|
|
*Guillermo Iguaran*
|
|
|
|
|
|
2013-12-15 06:07:34 +00:00
|
|
|
|
* Add `ENV['DATABASE_URL']` support in `rails dbconsole`. Fixes #13320.
|
|
|
|
|
|
|
|
|
|
*Huiming Teo*
|
|
|
|
|
|
2013-11-22 01:42:10 +00:00
|
|
|
|
* Add `Application#message_verifier` method to return a message verifier.
|
2013-11-20 00:34:32 +00:00
|
|
|
|
|
|
|
|
|
This verifier can be used to generate and verify signed messages in the application.
|
|
|
|
|
|
2013-12-19 19:04:07 +00:00
|
|
|
|
message = Rails.application.message_verifier(:sensitive_data).generate('my sensible data')
|
|
|
|
|
Rails.application.message_verifier(:sensitive_data).verify(message)
|
2013-11-20 00:34:32 +00:00
|
|
|
|
# => 'my sensible data'
|
|
|
|
|
|
2013-12-03 00:42:10 +00:00
|
|
|
|
It is recommended not to use the same verifier for different things, so you can get different
|
2013-11-22 01:42:10 +00:00
|
|
|
|
verifiers passing the name argument.
|
|
|
|
|
|
2013-12-19 19:04:07 +00:00
|
|
|
|
message = Rails.application.message_verifier(:cookies).generate('my sensible cookie data')
|
2013-11-22 01:42:10 +00:00
|
|
|
|
|
2013-11-22 02:02:10 +00:00
|
|
|
|
See the `ActiveSupport::MessageVerifier` documentation for more information.
|
2013-11-20 00:34:32 +00:00
|
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
|
2013-11-02 18:25:02 +00:00
|
|
|
|
* The [Spring application
|
2014-01-19 13:46:43 +00:00
|
|
|
|
preloader](https://github.com/rails/spring) is now installed
|
2013-11-02 18:25:02 +00:00
|
|
|
|
by default for new applications. It uses the development group of
|
|
|
|
|
the Gemfile, so will not be installed in production.
|
|
|
|
|
|
|
|
|
|
*Jon Leighton*
|
|
|
|
|
|
2013-05-21 15:34:29 +00:00
|
|
|
|
* Uses .railsrc while creating new plugin if it is available.
|
|
|
|
|
Fixes #10700.
|
|
|
|
|
|
|
|
|
|
*Prathamesh Sonpatki*
|
|
|
|
|
|
2013-11-22 00:11:26 +00:00
|
|
|
|
* Remove turbolinks when generating a new application based on a template that skips it.
|
|
|
|
|
|
2013-11-22 10:30:03 +00:00
|
|
|
|
Example:
|
|
|
|
|
|
2013-11-22 00:11:26 +00:00
|
|
|
|
Skips turbolinks adding `add_gem_entry_filter { |gem| gem.name != "turbolinks" }`
|
|
|
|
|
to the template.
|
|
|
|
|
|
|
|
|
|
*Lauro Caetano*
|
|
|
|
|
|
2013-11-11 17:56:02 +00:00
|
|
|
|
* Instrument an `load_config_initializer.railties` event on each load of configuration initializer
|
|
|
|
|
from `config/initializers`. Subscribers should be attached before `load_config_initializers`
|
|
|
|
|
initializer completed.
|
|
|
|
|
|
|
|
|
|
Registering subscriber examples:
|
|
|
|
|
|
|
|
|
|
# config/application.rb
|
|
|
|
|
module RailsApp
|
|
|
|
|
class Application < Rails::Application
|
|
|
|
|
ActiveSupport::Notifications.subscribe('load_config_initializer.railties') do |*args|
|
|
|
|
|
event = ActiveSupport::Notifications::Event.new(*args)
|
|
|
|
|
puts "Loaded initializer #{event.payload[:initializer]} (#{event.duration}ms)"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# my_engine/lib/my_engine/engine.rb
|
|
|
|
|
module MyEngine
|
|
|
|
|
class Engine < ::Rails::Engine
|
|
|
|
|
config.before_initialize do
|
|
|
|
|
ActiveSupport::Notifications.subscribe('load_config_initializer.railties') do |*args|
|
|
|
|
|
event = ActiveSupport::Notifications::Event.new(*args)
|
|
|
|
|
puts "Loaded initializer #{event.payload[:initializer]} (#{event.duration}ms)"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
*Paul Nikitochkin*
|
|
|
|
|
|
2013-10-29 22:58:52 +00:00
|
|
|
|
* Support for Pathnames in eager load paths.
|
|
|
|
|
|
|
|
|
|
*Mike Pack*
|
|
|
|
|
|
2013-11-11 07:17:44 +00:00
|
|
|
|
* Fixed missing line and shadow on service pages(404, 422, 500).
|
|
|
|
|
|
|
|
|
|
*Dmitry Korotkov*
|
|
|
|
|
|
2013-10-28 12:44:17 +00:00
|
|
|
|
* `BACKTRACE` environment variable to show unfiltered backtraces for
|
|
|
|
|
test failures.
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
2013-11-04 14:53:18 +00:00
|
|
|
|
$ BACKTRACE=1 ruby -Itest ...
|
2013-10-28 12:44:17 +00:00
|
|
|
|
# or with rake
|
2013-11-04 14:53:18 +00:00
|
|
|
|
$ BACKTRACE=1 bin/rake
|
2013-10-28 12:44:17 +00:00
|
|
|
|
|
|
|
|
|
*Yves Senn*
|
|
|
|
|
|
2013-10-27 09:43:17 +00:00
|
|
|
|
* Removal of all javascript stuff (gems and files) when generating a new
|
|
|
|
|
application using the `--skip-javascript` option.
|
|
|
|
|
|
|
|
|
|
*Robin Dupret*
|
|
|
|
|
|
2013-10-22 11:17:52 +00:00
|
|
|
|
* Make the application name snake cased when it contains spaces
|
|
|
|
|
|
|
|
|
|
The application name is used to fill the `database.yml` and
|
|
|
|
|
`session_store.rb` files ; previously, if the provided name
|
|
|
|
|
contained whitespaces, it led to unexpected names in these files.
|
|
|
|
|
|
|
|
|
|
*Robin Dupret*
|
|
|
|
|
|
2013-10-15 21:04:02 +00:00
|
|
|
|
* Added `--model-name` option to `ScaffoldControllerGenerator`.
|
2013-07-13 05:38:00 +00:00
|
|
|
|
|
|
|
|
|
*yalab*
|
|
|
|
|
|
2013-10-09 10:16:22 +00:00
|
|
|
|
* Expose MiddlewareStack#unshift to environment configuration.
|
|
|
|
|
|
|
|
|
|
*Ben Pickles*
|
|
|
|
|
|
2013-06-18 20:24:00 +00:00
|
|
|
|
* `rails server` will only extend the logger to output to STDOUT
|
|
|
|
|
in development environment.
|
|
|
|
|
|
|
|
|
|
*Richard Schneeman*
|
|
|
|
|
|
2013-09-07 20:50:54 +00:00
|
|
|
|
* Don't require passing path to app before options in `rails new`
|
|
|
|
|
and `rails plugin new`
|
|
|
|
|
|
|
|
|
|
*Piotr Sarnacki*
|
|
|
|
|
|
2013-08-15 10:30:01 +00:00
|
|
|
|
* rake notes now searches *.less files
|
|
|
|
|
|
|
|
|
|
*Josh Crowder*
|
|
|
|
|
|
2013-07-21 15:06:35 +00:00
|
|
|
|
* Generate nested route for namespaced controller generated using
|
|
|
|
|
`rails g controller`.
|
|
|
|
|
Fixes #11532.
|
2013-09-07 20:50:54 +00:00
|
|
|
|
|
2013-07-21 15:06:35 +00:00
|
|
|
|
Example:
|
2013-09-07 20:50:54 +00:00
|
|
|
|
|
2013-07-21 15:06:35 +00:00
|
|
|
|
rails g controller admin/dashboard index
|
2013-09-07 20:50:54 +00:00
|
|
|
|
|
2013-07-21 15:06:35 +00:00
|
|
|
|
# Before:
|
|
|
|
|
get "dashboard/index"
|
2013-09-07 20:50:54 +00:00
|
|
|
|
|
2013-07-21 15:06:35 +00:00
|
|
|
|
# After:
|
|
|
|
|
namespace :admin do
|
|
|
|
|
get "dashboard/index"
|
|
|
|
|
end
|
2013-09-07 20:50:54 +00:00
|
|
|
|
|
2013-07-21 15:06:35 +00:00
|
|
|
|
*Prathamesh Sonpatki*
|
2013-09-07 20:50:54 +00:00
|
|
|
|
|
2013-08-05 21:16:41 +00:00
|
|
|
|
* Fix the event name of action_dispatch requests.
|
|
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
|
2013-08-04 14:38:14 +00:00
|
|
|
|
* Make `config.log_level` work with custom loggers.
|
|
|
|
|
|
|
|
|
|
*Max Shytikov*
|
|
|
|
|
|
2013-07-29 11:03:41 +00:00
|
|
|
|
* Changed stylesheet load order in the stylesheet manifest generator.
|
|
|
|
|
Fixes #11639.
|
|
|
|
|
|
|
|
|
|
*Pawel Janiak*
|
|
|
|
|
|
2013-07-13 10:49:31 +00:00
|
|
|
|
* Added generated unit test for generator generator using new
|
|
|
|
|
`test:generators` rake task.
|
|
|
|
|
|
|
|
|
|
*Josef Šimánek*
|
|
|
|
|
|
2013-07-13 12:30:58 +00:00
|
|
|
|
* Removed `update:application_controller` rake task.
|
|
|
|
|
|
|
|
|
|
*Josef Šimánek*
|
|
|
|
|
|
2013-07-09 20:36:50 +00:00
|
|
|
|
* Fix `rake environment` to do not eager load modules
|
|
|
|
|
|
|
|
|
|
*Paul Nikitochkin*
|
|
|
|
|
|
2013-07-08 15:13:01 +00:00
|
|
|
|
* Fix `rake notes` to look into `*.sass` files
|
|
|
|
|
|
|
|
|
|
*Yuri Artemev*
|
|
|
|
|
|
2013-07-04 17:56:23 +00:00
|
|
|
|
* Removed deprecated `Rails.application.railties.engines`.
|
|
|
|
|
|
|
|
|
|
*Arun Agrawal*
|
|
|
|
|
|
2013-07-03 19:58:01 +00:00
|
|
|
|
* Removed deprecated threadsafe! from Rails Config.
|
|
|
|
|
|
|
|
|
|
*Paul Nikitochkin*
|
|
|
|
|
|
2013-07-03 17:03:57 +00:00
|
|
|
|
* Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` in
|
2013-12-05 10:33:12 +00:00
|
|
|
|
favor of `ActiveRecord::Generators::ActiveModel#update`.
|
2013-07-03 17:03:57 +00:00
|
|
|
|
|
|
|
|
|
*Vipul A M*
|
|
|
|
|
|
2013-12-05 10:33:12 +00:00
|
|
|
|
* Remove deprecated `config.whiny_nils` option.
|
2013-07-02 03:55:08 +00:00
|
|
|
|
|
|
|
|
|
*Vipul A M*
|
|
|
|
|
|
2013-06-30 21:02:19 +00:00
|
|
|
|
* Rename `commands/plugin_new.rb` to `commands/plugin.rb` and fix references
|
|
|
|
|
|
|
|
|
|
*Richard Schneeman*
|
|
|
|
|
|
2013-06-29 09:54:23 +00:00
|
|
|
|
* Fix `rails plugin --help` command.
|
|
|
|
|
|
|
|
|
|
*Richard Schneeman*
|
|
|
|
|
|
2013-06-28 11:11:50 +00:00
|
|
|
|
* Omit turbolinks configuration completely on skip_javascript generator option.
|
|
|
|
|
|
|
|
|
|
*Nikita Fedyashev*
|
|
|
|
|
|
2013-06-26 23:07:26 +00:00
|
|
|
|
* Removed deprecated rake tasks for running tests: `rake test:uncommitted` and
|
|
|
|
|
`rake test:recent`.
|
2013-06-26 16:09:57 +00:00
|
|
|
|
|
|
|
|
|
*John Wang*
|
|
|
|
|
|
2013-07-29 11:03:41 +00:00
|
|
|
|
* Clearing autoloaded constants triggers routes reloading.
|
|
|
|
|
Fixes #10685.
|
2013-06-06 21:16:04 +00:00
|
|
|
|
|
|
|
|
|
*Xavier Noria*
|
|
|
|
|
|
2013-05-04 13:53:53 +00:00
|
|
|
|
* Fixes bug with scaffold generator with `--assets=false --resource-route=false`.
|
|
|
|
|
Fixes #9525.
|
2013-05-03 09:42:30 +00:00
|
|
|
|
|
|
|
|
|
*Arun Agrawal*
|
|
|
|
|
|
2013-03-19 02:12:35 +00:00
|
|
|
|
* Rails::Railtie no longer forces the Rails::Configurable module on everything
|
2013-05-18 13:52:46 +00:00
|
|
|
|
that subclasses it. Instead, the methods from Rails::Configurable have been
|
2013-03-19 02:12:35 +00:00
|
|
|
|
moved to class methods in Railtie and the Railtie has been made abstract.
|
|
|
|
|
|
|
|
|
|
*John Wang*
|
2013-06-26 23:07:26 +00:00
|
|
|
|
|
2013-06-17 00:22:31 +00:00
|
|
|
|
* Changes repetitive th tags to use colspan attribute in `index.html.erb` template.
|
2013-06-26 23:07:26 +00:00
|
|
|
|
|
2013-06-17 00:22:31 +00:00
|
|
|
|
*Sıtkı Bağdat*
|
2013-02-26 16:45:20 +00:00
|
|
|
|
|
2013-04-29 16:06:45 +00:00
|
|
|
|
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/railties/CHANGELOG.md) for previous changes.
|