mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Consistent one-spaced bullets in guides release notes
This commit is contained in:
parent
2478b5e619
commit
84675cae63
2 changed files with 29 additions and 30 deletions
|
@ -40,7 +40,7 @@ Here's a summary of the rack-related changes:
|
|||
* `ActiveRecord::QueryCache` middleware is automatically inserted onto the middleware stack if `ActiveRecord` has been loaded. This middleware sets up and flushes the per-request Active Record query cache.
|
||||
* The Rails router and controller classes follow the Rack spec. You can call a controller directly with `SomeController.call(env)`. The router stores the routing parameters in `rack.routing_args`.
|
||||
* `ActionController::Request` inherits from `Rack::Request`.
|
||||
* Instead of `config.action_controller.session = { :session_key => 'foo', ...` use `config.action_controller.session = { :key => 'foo', ...`.
|
||||
* Instead of `config.action_controller.session = { :session_key => 'foo', ...` use `config.action_controller.session = { :key => 'foo', ...`.
|
||||
* Using the `ParamsParser` middleware preprocesses any XML, JSON, or YAML requests so they can be read normally with any `Rack::Request` object after it.
|
||||
|
||||
### Renewed Support for Rails Engines
|
||||
|
|
|
@ -83,7 +83,7 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/railt
|
|||
|
||||
### Notable changes
|
||||
|
||||
* New test locations `test/models`, `test/helpers`, `test/controllers`, and `test/mailers`. Corresponding rake tasks added as well. ([Pull Request](https://github.com/rails/rails/pull/7878))
|
||||
* New test locations `test/models`, `test/helpers`, `test/controllers`, and `test/mailers`. Corresponding rake tasks added as well. ([Pull Request](https://github.com/rails/rails/pull/7878))
|
||||
|
||||
* Your app's executables now live in the `bin/` directory. Run `rake rails:update:bin` to get `bin/bundle`, `bin/rails`, and `bin/rake`.
|
||||
|
||||
|
@ -111,10 +111,9 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ
|
|||
|
||||
### Notable changes
|
||||
|
||||
* Add `ActiveModel::ForbiddenAttributesProtection`, a simple module to protect attributes from mass assignment when non-permitted attributes are passed.
|
||||
* Add `ActiveModel::ForbiddenAttributesProtection`, a simple module to protect attributes from mass assignment when non-permitted attributes are passed.
|
||||
|
||||
* Added `ActiveModel::Model`, a mixin to make Ruby objects work with
|
||||
Action Pack out of box.
|
||||
* Added `ActiveModel::Model`, a mixin to make Ruby objects work with Action Pack out of box.
|
||||
|
||||
### Deprecations
|
||||
|
||||
|
@ -125,27 +124,27 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ
|
|||
|
||||
### Notable changes
|
||||
|
||||
* Replace deprecated `memcache-client` gem with `dalli` in ActiveSupport::Cache::MemCacheStore.
|
||||
* Replace deprecated `memcache-client` gem with `dalli` in ActiveSupport::Cache::MemCacheStore.
|
||||
|
||||
* Optimize ActiveSupport::Cache::Entry to reduce memory and processing overhead.
|
||||
* Optimize ActiveSupport::Cache::Entry to reduce memory and processing overhead.
|
||||
|
||||
* Inflections can now be defined per locale. `singularize` and `pluralize` accept locale as an extra argument.
|
||||
* Inflections can now be defined per locale. `singularize` and `pluralize` accept locale as an extra argument.
|
||||
|
||||
* `Object#try` will now return nil instead of raise a NoMethodError if the receiving object does not implement the method, but you can still get the old behavior by using the new `Object#try!`.
|
||||
* `Object#try` will now return nil instead of raise a NoMethodError if the receiving object does not implement the method, but you can still get the old behavior by using the new `Object#try!`.
|
||||
|
||||
### Deprecations
|
||||
|
||||
* Deprecate `ActiveSupport::TestCase#pending` method, use `skip` from MiniTest instead.
|
||||
* Deprecate `ActiveSupport::TestCase#pending` method, use `skip` from MiniTest instead.
|
||||
|
||||
* ActiveSupport::Benchmarkable#silence has been deprecated due to its lack of thread safety. It will be removed without replacement in Rails 4.1.
|
||||
* ActiveSupport::Benchmarkable#silence has been deprecated due to its lack of thread safety. It will be removed without replacement in Rails 4.1.
|
||||
|
||||
* `ActiveSupport::JSON::Variable` is deprecated. Define your own `#as_json` and `#encode_json` methods for custom JSON string literals.
|
||||
* `ActiveSupport::JSON::Variable` is deprecated. Define your own `#as_json` and `#encode_json` methods for custom JSON string literals.
|
||||
|
||||
* Deprecates the compatibility method Module#local_constant_names, use Module#local_constants instead (which returns symbols).
|
||||
* Deprecates the compatibility method Module#local_constant_names, use Module#local_constants instead (which returns symbols).
|
||||
|
||||
* BufferedLogger is deprecated. Use ActiveSupport::Logger, or the logger from Ruby standard library.
|
||||
* BufferedLogger is deprecated. Use ActiveSupport::Logger, or the logger from Ruby standard library.
|
||||
|
||||
* Deprecate `assert_present` and `assert_blank` in favor of `assert object.blank?` and `assert object.present?`
|
||||
* Deprecate `assert_present` and `assert_blank` in favor of `assert object.blank?` and `assert object.present?`
|
||||
|
||||
Action Pack
|
||||
-----------
|
||||
|
@ -166,7 +165,7 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ
|
|||
|
||||
### Notable changes
|
||||
|
||||
* Improve ways to write `change` migrations, making the old `up` & `down` methods no longer necessary.
|
||||
* Improve ways to write `change` migrations, making the old `up` & `down` methods no longer necessary.
|
||||
|
||||
* The methods `drop_table` and `remove_column` are now reversible, as long as the necessary information is given.
|
||||
The method `remove_column` used to accept multiple column names; instead use `remove_columns` (which is not revertible).
|
||||
|
@ -179,36 +178,36 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ
|
|||
If migrating down, the given migration / block is run normally.
|
||||
See the [Guide on Migration](https://github.com/rails/rails/blob/master/guides/source/migrations.md#reverting-previous-migrations)
|
||||
|
||||
* Adds PostgreSQL array type support. Any datatype can be used to create an array column, with full migration and schema dumper support.
|
||||
* Adds PostgreSQL array type support. Any datatype can be used to create an array column, with full migration and schema dumper support.
|
||||
|
||||
* Add `Relation#load` to explicitly load the record and return `self`.
|
||||
* Add `Relation#load` to explicitly load the record and return `self`.
|
||||
|
||||
* `Model.all` now returns an `ActiveRecord::Relation`, rather than an array of records. Use `Relation#to_a` if you really want an array. In some specific cases, this may cause breakage when upgrading.
|
||||
* `Model.all` now returns an `ActiveRecord::Relation`, rather than an array of records. Use `Relation#to_a` if you really want an array. In some specific cases, this may cause breakage when upgrading.
|
||||
|
||||
* Added `ActiveRecord::Migration.check_pending!` that raises an error if migrations are pending.
|
||||
* Added `ActiveRecord::Migration.check_pending!` that raises an error if migrations are pending.
|
||||
|
||||
* Added custom coders support for `ActiveRecord::Store`. Now you can set your custom coder like this:
|
||||
* Added custom coders support for `ActiveRecord::Store`. Now you can set your custom coder like this:
|
||||
|
||||
store :settings, accessors: [ :color, :homepage ], coder: JSON
|
||||
|
||||
* `mysql` and `mysql2` connections will set `SQL_MODE=STRICT_ALL_TABLES` by default to avoid silent data loss. This can be disabled by specifying `strict: false` in your `database.yml`.
|
||||
* `mysql` and `mysql2` connections will set `SQL_MODE=STRICT_ALL_TABLES` by default to avoid silent data loss. This can be disabled by specifying `strict: false` in your `database.yml`.
|
||||
|
||||
* Remove IdentityMap.
|
||||
* Remove IdentityMap.
|
||||
|
||||
* Remove automatic execution of EXPLAIN queries. The option `active_record.auto_explain_threshold_in_seconds` is no longer used and should be removed.
|
||||
* Remove automatic execution of EXPLAIN queries. The option `active_record.auto_explain_threshold_in_seconds` is no longer used and should be removed.
|
||||
|
||||
* Adds `ActiveRecord::NullRelation` and `ActiveRecord::Relation#none` implementing the null object pattern for the Relation class.
|
||||
* Adds `ActiveRecord::NullRelation` and `ActiveRecord::Relation#none` implementing the null object pattern for the Relation class.
|
||||
|
||||
* Added `create_join_table` migration helper to create HABTM join tables.
|
||||
* Added `create_join_table` migration helper to create HABTM join tables.
|
||||
|
||||
* Allows PostgreSQL hstore records to be created.
|
||||
* Allows PostgreSQL hstore records to be created.
|
||||
|
||||
### Deprecations
|
||||
|
||||
* Deprecated the old-style hash based finder API. This means that methods which previously accepted "finder options" no longer do.
|
||||
* Deprecated the old-style hash based finder API. This means that methods which previously accepted "finder options" no longer do.
|
||||
|
||||
* All dynamic methods except for `find_by_...` and `find_by_...!` are deprecated. Here's
|
||||
how you can rewrite the code:
|
||||
* All dynamic methods except for `find_by_...` and `find_by_...!` are deprecated. Here's
|
||||
how you can rewrite the code:
|
||||
|
||||
* `find_all_by_...` can be rewritten using `where(...)`.
|
||||
* `find_last_by_...` can be rewritten using `where(...).last`.
|
||||
|
|
Loading…
Reference in a new issue