Fix inconsistent behavior from String#first/#last
While calling String#first or String#last with zero or a Fixnum < the string's length returns a new string, a Fixnum >= the string's length returns the string itself. This inconsistency can lead to inadvertent mutation of a string.
when a destroyed record is duped, it is no longer ´destroyed?`.
remove warning while running TEST CASES
`warning: ambiguous first argument; put parentheses or even spaces`
:uglify -> :uglifier
The name of the gem is `uglifier` and all other references use `uglifier`, not `uglify`.
Optimize select_value, select_values, select_rows in Postgresql adapter.
Fixed has_many association to make it support irregular inflections.
So that irregular multi-word pluralization rules have to be defined only for snake-case strings.
CSRF protection should rescue exception not extend
… whether to exec with cache for Postgresql adapter Reduces creating unused objects, with the most dramatic reduction in select_values which used to map(&:first) an array of single element arrays.
Extend previous changes, include the default line from the application controller that new rails applications are created with: protect_from_forgery with: :exception Minor wording changes to align.
Related with cbb9174
This was changed at cbb9174
Remove wrapping div with inline styles for hidden form fields. Conflicts: actionview/CHANGELOG.md
Use common to_io so users can access the underlying IO object
Bring SQLite3Adpter init API closer to others
I think the changes to the default behaviour mean that rails will throw an exception when an invalid authenticity token is found. The previous proposed code of calling super then sign_out meant that sign_out was never reached - the exception handler never returned. I think the best approach now is to catch the exception, although I'm not 100% certain on that.
…-failed Autoload ActiveModel::StrictValidationFailed
Currently, if environment doesn’t eager load code, invoking this constant before calling #valid? on a model instance results in a NameError.
[ci skip] Added examples for telephone_field_tag and url_field_tag methods
[ci skip] Added examples for search_field_tag method
[ci skip] Added examples for color_field_tag method