rails/railties/CHANGELOG.md

122 lines
2.8 KiB
Markdown
Raw Normal View History

* Include `web-console` into newly generated applications' Gemfile.
*Genadi Samokovarov*
Only output Server logs in Development Right now when you start a server via `rails s`, the logger gets extended so that it logs to the file system and also to stdout. This extension behavior is not "intelligent" and if the default logger is already set to output to stdout, then the contents will be received twice. To capture logs in accordance with http://www.12factor.net/logs some platforms require the logs to be sent to standard out. If a logger is set to stdout, and the server is started using `rails server` instead of another method (i.e. `thin start` etc.) then the app will produce double logs. This PR fixes the issue by only extending the logger to standard out in the development environment. So that in production you don't get double logs like this: ``` ActionView::Template::Error (wrong number of arguments (5 for 4)): 1: <% lang_index = 0 %> 2: <div class="row"> 3: <ul class="nav nav-tabs nav-stacked span2" data-tabs="tabs" id="repo-tabs"> 4: <% repos.group_by(&:language).each do |lang, repos| %> 5: <% unless lang == nil %> 6: <li><a href="#<%= "#{lang.parameterize}#{lang.hash}" %>" data-toggle="tab"><%= lang %></a></li> 7: <% end -%> app/views/shared/_repos.html.erb:4:in `_app_views_shared__repos_html_erb___1685450633638247395_70300668607000' app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb__2084723628308867770_70300687584880' ActionView::Template::Error (wrong number of arguments (5 for 4)): 1: <% lang_index = 0 %> 2: <div class="row"> 3: <ul class="nav nav-tabs nav-stacked span2" data-tabs="tabs" id="repo-tabs"> 4: <% repos.group_by(&:language).each do |lang, repos| %> 5: <% unless lang == nil %> 6: <li><a href="#<%= "#{lang.parameterize}#{lang.hash}" %>" data-toggle="tab"><%= lang %></a></li> 7: <% end -%> app/views/shared/_repos.html.erb:4:in `_app_views_shared__repos_html_erb___1685450633638247395_70300668607000' app/views/pages/index.html.erb:13:in `_app_views_pages_index_html_erb__2084723628308867770_70300687584880' ``` ATP Railties. Opened against master in favor of #10999
2013-06-18 20:24:00 +00:00
* `rails server` will only extend the logger to output to STDOUT
in development environment.
*Richard Schneeman*
* 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*
* Generate nested route for namespaced controller generated using
`rails g controller`.
Fixes #11532.
Example:
rails g controller admin/dashboard index
# Before:
get "dashboard/index"
# After:
namespace :admin do
get "dashboard/index"
end
*Prathamesh Sonpatki*
* Fix the event name of action_dispatch requests.
*Rafael Mendonça França*
* Make `config.log_level` work with custom loggers.
*Max Shytikov*
* Changed stylesheet load order in the stylesheet manifest generator.
Fixes #11639.
*Pawel Janiak*
* Added generated unit test for generator generator using new
`test:generators` rake task.
*Josef Šimánek*
* Removed `update:application_controller` rake task.
*Josef Šimánek*
* 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*
* Removed deprecated `Rails.application.railties.engines`.
*Arun Agrawal*
* Removed deprecated threadsafe! from Rails Config.
*Paul Nikitochkin*
* 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*
* Rename `commands/plugin_new.rb` to `commands/plugin.rb` and fix references
*Richard Schneeman*
* Fix `rails plugin --help` command.
*Richard Schneeman*
* 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`.
*John Wang*
* Clearing autoloaded constants triggers routes reloading.
Fixes #10685.
*Xavier Noria*
2013-05-04 13:53:53 +00:00
* Fixes bug with scaffold generator with `--assets=false --resource-route=false`.
Fixes #9525.
*Arun Agrawal*
* 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
moved to class methods in Railtie and the Railtie has been made abstract.
*John Wang*
2013-06-26 23:07:26 +00:00
* Changes repetitive th tags to use colspan attribute in `index.html.erb` template.
2013-06-26 23:07:26 +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.