Making test accurately reflect what is going on in the schema migrations test
Since File instance doesn't respond to #open use a double to test the
behavior added at c53e5def08f7a289a92a8e5f79dcd7caa5c3a2fb
Merge pull request #6450 from iHiD/resource_generator_routes_master

Master branch: Fixed generated whitespace in routes when using namespaced resource.

Merge pull request #7811 from iHiD/resource_generator_routes_master

Fix the build (Broken scaffold routes test)
Merge pull request #7789 from senny/7777_resource_functions_modify_options

resource and resources do no longer modify passed options
Merge pull request #7797 from senny/7459_prefix_tempalte_assertion_variables

prefix TemplateAssertions ivars.

Closes #7459
Conflicts:
	actionpack/lib/action_controller/test_case.rb
	actionpack/lib/action_view/test_case.rb
Merge pull request #7822 from lulalala/reset-counter-cache-for-has-many-through

Fix reset_counters crashing on has_many :through associations.
Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/counter_cache.rb
Refactor

Conflicts:
	activerecord/lib/active_record/counter_cache.rb
Update supported ruby versions error message in ruby_version_check.rb
Merge pull request #7836 from lihanli/error-msg-update

Update supported ruby versions error message in ruby_version_check.rb
Merge pull request #6978 from frodsan/count_nosql_unsaved_parent

Count returns 0 without querying if parent is not saved
Merge pull request #7850 from senny/5920_postgres_adapter_table_with_capital_letters

postgres, quote table names when fetching the primary key (#5920)
Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
Merge pull request #7848 from senny/3415_assert_template_has_nil_variable

can't pass :locals to #assert_template without a view test case (#3415)
Conflicts:
	actionpack/CHANGELOG.md
Accept :remote as symbol in link_to options

Accept either :remote or 'remote' in both the html_options and
(url_)options hash arguments to link_to.
Use the Ruby 1.8 hash syntax
Merge pull request #7865 from teleological/link_to_remote_3_2

Accept :remote as symbol in link_to options (backport)
Backport 1a7049906ee6735bae058e9985a3806d08d9746b

Tag the blank log line between dev requests so it's easier to filter out entire requests with grep -v without leaving a stray newline behind. Example:

  # Tag asset requests so it's easy to filter them from dev logs
  config.log_tags = [
    -> request { :assets if request.path.starts_with?(config.assets.prefix) },
    -> request { request.uuid }
  ]

  # Watch the logs, ignoring asset requests
  $ tail -100f log/development.log | grep -v assets
Eager autoload ActiveRecord association helpers
Eager autoload Preloader classes

Without eager autoloading, these would be autoloaded
only when #preloader_for is called, which is too late
in threaded applications.
Merge pull request #7905 from jfirebaugh/eager_autoload_3-2

Backport eager autoloading fixes
Fix has_many assocation w/select load after create

If you create a new record via a collection association proxy that has
not loaded its target, and which selects additional attributes through
the association, then when the proxy loads its target, it will
inadvertently trigger a deprecation notice during attribute writing when
CollectionAssociation#merge_target_lists attempts to do its thing, since
the newly loaded records will possess attributes the created record does
not.