This is not valid anymore after 08477a6
When the adapter is with prepared statement disabled and the binds array is not empty the connection adapter will try to set the binds values and will fail. Now we are checking if the adapter has the prepared statement disabled. Fixes #12023
Perf: avoid dupes add fallback logic for coders
…ven-more Reduce Duration#inspect to a single series of transformations
Avoid empty transaction from setting has_one association on new record. Conflicts: activerecord/CHANGELOG.md
Reduce allocations when extracting AR models
Relation#merge should not lose readonly(false) flag.
This reverts commit ba04073.
remove sentence err
* eliminates need for temp Hash Also added a couple of examples to DurationTest to specify: * duration can be defined with units out of order e.g. 1.month + 1.year + 1.second + 1.day * equality with a Fixnum works regardless of which operand is on which side of the operator
The original code ignores the `false` value because `false.blank? # => true`.
"previous version of Rails" is gramatically incorrect
Previously, our default HTML would validate properly, but would generate a warning: it doesn't declare a character encoding. According to [the spec][encoding-spec], if you don't specify an encoding, a 7 step algorithm happens, with a toooon of sub-steps. Or, we could just actually specify it. Since everything else in Rails assumes UTF-8, we should make sure pages are served with that encoding too. This meta tag is the simplest way to accomplish this. More resources: * http://blog.whatwg.org/the-road-to-html-5-character-encoding * http://www.w3.org/International/tutorials/tutorial-char-enc/ * http://validator.w3.org/ [encoding-spec]: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#determining-the-character-encoding
* we no more have to manipulate the each caller strings by ourselves using caller_locations * caller_locations runs slightly faster, and creates less objects than good old caller Benchmark (loading an Engine 1000 times): caller: 262.89 ms caller_locations: 186.068 ms
… a test
change def self.primary_key to self.primary_key change def self.primary_key to self.primary_key
Reference: Bloody mess internals http://gusiev.com/slides/rails_contribution/static/#40
use assert_empty in activemodel conditional validation test cases