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

Move changelog entry to the top, fix examples indent [ci skip]

This commit is contained in:
Carlos Antonio da Silva 2014-02-18 12:53:00 -03:00
parent 76fec334ee
commit 68345d4a1a

View file

@ -1,19 +1,19 @@
* Added `Object#present_in` to simplify value whitelisting.
Before:
params[:bucket_type].in?(%w( project calendar )) ? params[:bucket_type] : nil
After:
params[:bucket_type].present_in %w( project calendar )
*DHH*
* Time helpers honor the application time zone when passed a date.
*Xavier Noria*
* Added Object#present_in to simplify value whitelisting.
Before:
params[:bucket_type].in?(%w( project calendar )) ? params[:bucket_type] : nil
After:
params[:bucket_type].present_in %w( project calendar )
*DHH*
* Fix the implementation of Multibyte::Unicode.tidy_bytes for JRuby
The existing implementation caused JRuby to raise the error: