1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Changelog improvements [ci skip]

This commit is contained in:
Carlos Antonio da Silva 2013-12-12 08:33:46 -02:00
parent 6645a2099a
commit fe24f3560a
3 changed files with 14 additions and 12 deletions

View file

@ -1,8 +1,10 @@
* Fix generating a path for engine inside a resources block (#8533)
* Fix generating a path for engine inside a resources block.
Fixes #8533.
*Piotr Sarnacki*
* Add Mime::Type.register "text/vcard", :vcf to the default list of mime types
* Add `Mime::Type.register "text/vcard", :vcf` to the default list of mime types.
*DHH*
@ -26,7 +28,7 @@
The request variant is a specialization of the request format, like `:tablet`,
`:phone`, or `:desktop`.
You can set the variant in a before_action:
You can set the variant in a `before_action`:
request.variant = :tablet if request.user_agent =~ /iPad/
@ -85,7 +87,7 @@
* Add `session#fetch` method
fetch behaves like [Hash#fetch](http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch).
fetch behaves like [Hash#fetch](http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch).
It returns a value from the hash for the given key.
If the key cant be found, there are several options:

View file

@ -1,16 +1,16 @@
* Use the right column to type cast grouped calculations with custom expressions.
Fixes: #13230
Fixes #13230.
Example:
# Before
Account.group(:firm_name).sum('0.01 * credit_limit')
# => { '37signals' => '0.5' }
# Before
Account.group(:firm_name).sum('0.01 * credit_limit')
# => { '37signals' => '0.5' }
# After
Account.group(:firm_name).sum('0.01 * credit_limit')
# => { '37signals' => 0.5 }
# After
Account.group(:firm_name).sum('0.01 * credit_limit')
# => { '37signals' => 0.5 }
*Paul Nikitochkin*

View file

@ -1,4 +1,4 @@
* Fix file descriptor being leaked on each call to `Kernel.silence_stream`
* Fix file descriptor being leaked on each call to `Kernel.silence_stream`.
*Mario Visic*