…dex command recorder
…stent manner. Inlined the determination of the options hash for reversing using a ternary operator. Shortens the method in a way that keeps the code neat
… has been provided
Use mysql_creation_options inside rescue block
…_assumption Fix assumption of primary key name in PredicateBuilder subquery.
Conflicts: activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/test/cases/relations_test.rb
…ked as loaded. Fixes #2054.
We have to use Observer#update rather than Observer#send since the enabled state is checked in #update before forwarding the method call on.
We were experiencing CI test failures, for example: * 3-1-stable: http://travis-ci.org/#!/rails/rails/builds/79473/L407 * master: http://travis-ci.org/#!/rails/rails/builds/79507/L80 These failures only happened on 1.8.7-p352, and we were only able to reproduce on the Travis CI VM worker. We even tried creating a new 32 bit Ubuntu VM and running the tests on that, and it all worked fine. After some epic trial and error, we discovered that replacing the following: fuu = Marshal.load(Marshal.dump(fuu)) with: marshalled = Marshal.dump(fuu) fuu = Marshal.load(marshalled) seemed to prevent the failure. We have NO IDEA why this is. If anyone has some great insight to contribute then that is welcome. Otherwise, hopefully this will just help us get the CI green again. Many thanks to @joshk for help with sorting this out.
…upon thee once more
…itor for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now. Conflicts: activerecord/lib/active_record/relation/finder_methods.rb activerecord/test/cases/adapter_test.rb
This reverts commit c544872.
…n-safe forms" Reason: The hash form is secure, and preferred over the array form if possible. This reverts commit 6dc7495.
… on both sides on an association.