Use order to get the first record since postgresql returns in the
desired order
Change tabs to spaces in form options helper [ci skip]
determine the match shorthand target early.

Backport #9361.
Closes #7554.

This patch determines the `controller#action` directly
in the `match` method when the shorthand syntax is used.
this prevents problems with namespaces and scopes.
Merge pull request #9374 from senny/improved_match_shorthand_syntax

determine the match shorthand target early.
Use 1.8 hash style
Sqlite preserves primary keys when copying/altering tables.

Backport #2312.
Fixes #9367.

I also added a test-case to make sure that renaming or removing
a column preserves the primary key.
Merge pull request #9388 from senny/9367_wrong_schema_after_remove_column

Sqlite preserves primary keys when copying/altering tables.
Add in missing requires
`name` should be public.
Fix failing test case when no database.yml
Define #inspect instead of #to_s

Ruby 2.0 Object#inspect does not call #to_s by default anymore.
search private and protected methods for convert_key
Ruby 2.0.0 defaults source encoding to utf-8 so we need to specifically tag this file with us-ascii
Ruby 2 compat. CGI.escapeHTML has changed the way it escapes apostrophes a few times, so fix up the test to work with however it chooses to escape.
There is already a Set of non-hidden action_names lying around.
Check for `method_missing` in public and protected

Ruby 2.0 changed the behavior of `respond_to?` without argument to
return only search for public method. We actually want to perform the
action only if `method_missing` is either in public or protected.
Make the tests pass with minitest 4.2
Ruby 2 compat. Hash[] now raises on bad elements rather than ignoring them. No sense over-testing this MRI-specific behavior. See ruby/ruby@8d6add973ebcb3b4c1efbfaf07786550a3e219af
Do not redirect cache logger to /dev/null in test

For some reason, redirecting cache's logger to '/dev/null' resulting in
a test failures and LoadError. I think it's because of Thread issue.
Instead of trying to make every logger threadsafe for Rails 3.2, I think
it's better to just don't set the logger for now.

(Note: resetting the logger back to original value in the teardown block
didn't fix the problem.)
added marshal_load and marshal_dump for ProxyTestResult. Behavior of method_missing with Marshal.dump and Marshal.load is changing in ruby 2.0.0 later.