…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
…n-safe forms" Reason: The hash form is secure, and preferred over the array form if possible. This reverts commit 6dc7495.
… the dynamic finder The previous behavior was unintentional, and some people was relying on it. In the next version of Rails, the dynamic finder will always expecting the number of arguments to be equal or greater (so you can still pass the options to it.) It will raise the ArgumentError otherwise.
(cherry picked from commit 9f7442a)
…e of Array#flatten under 1.9, see comment for details.
… will pick up the type column
ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. Closes #1423