2013-11-22 01:07:26 +00:00
|
|
|
|
* Add `Application#message_verifier` method to return a application's 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-11-22 01:07:26 +00:00
|
|
|
|
message = Rails.application.message_verifier.generate('my sensible data')
|
|
|
|
|
Rails.application.message_verifier.verify(message)
|
2013-11-20 00:34:32 +00:00
|
|
|
|
# => 'my sensible data'
|
|
|
|
|
|
|
|
|
|
See the `ActiveSupport::MessageVerifier` documentation to more information.
|
|
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
|
2013-11-02 18:25:02 +00:00
|
|
|
|
* The [Spring application
|
|
|
|
|
preloader](https://github.com/jonleighton/spring) is now installed
|
|
|
|
|
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
|
|
|
|
|
favor of `ActiveRecord::Generators::ActiveModel#update`
|
|
|
|
|
|
|
|
|
|
*Vipul A M*
|
|
|
|
|
|
2013-07-02 03:55:08 +00:00
|
|
|
|
* Remove deprecated `config.whiny_nils` option
|
|
|
|
|
|
|
|
|
|
*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.
|