Don't paramify ActionDispatch::Http::UploadedFile in tests

To test uploading a file without using fixture_file_upload, a posted
ActionDispatch::Http::UploadedFile should not be paramified (just like
Rack::Test::UploadedFile).
(Rack::Test::UploadedFile and ActionDispatch::Http::UploadedFile don't
share the same API, tempfile is not accessible on
Rack::Test::UploadedFile as discussed in
https://github.com/brynary/rack-test/issues/30)
change param name to improve documentation

The keys of the error messages are actually attribute names. It makes
the documentation easier to understand:

    # Returns +true+ if the error messages include an error for the given
    # +attribute+, +false+ otherwise.
    #
    #   person.errors.messages # => { :name => ["can not be nil"] }
    #   person.errors.include?(:name) # => true
    #   person.errors.include?(:age)  # => false
    def include?(attribute)
      (v = messages[attribute]) && v.any?
    end
Merge pull request #6829 from frodsan/misunderstood_param

change param name to improve documentation
Allow precision option for postgresql datetimes

This patch addresses the difficulty of retrieving datetime fields. By default, the database holds a higher precision than the time as a String.

This issue is discussed at length at the following links:
- [#3519](https://github.com/rails/rails/issues/3519)
- [#3520](https://github.com/rails/rails/issues/3520)

Also, kudos to @mattscilipoti
Merge pull request #6821 from tonywok/pg_datetime_precision

Allow precision option for postgresql datetimes
add :nodoc: to internal implementations [ci skip]
Merge pull request #6832 from frodsan/nodoc_patch1

add :nodoc: to internal implementations [ci skip]
fix some accidental nils
eliminating another string subclass
Add test cases for 46492949b8c09f99db78b9f7a02d039e7bc6a702
ruby 1.9 hash syntax for generated code

app/controllers/application_controller.rb
app/views/layouts/application.html.erb
config/application.rb
config/routes.rb
test/performance/browsing_test.rb
format the 4.0 release notes [ci skip]
Merge pull request #6836 from flyerhzm/ruby_19_hash

Ruby 1.9 hash syntax for generated code
Move tasks(rake) tests to under the tasks dir.
Merge pull request #6837 from kennyj/move_to_tasks_dir

Move Active Record rake tasks tests to under the tasks dir [ci skip]
Merge pull request #6805 from tim-vandecasteele/uploadedfile-paramify

Don't paramify ActionDispatch::Http::UploadedFile in tests
Stop assuming strings for grouped calculations

Execute_grouped_calculation is one of those places where
ActiveRecord forgets that it has ARel underpinnings, and
assumes that the values provided to group_values are
strings. This artificially hobbles otherwise functional
code. This patch stops assuming that incoming values
respond to to_sym, stops using string interpolation for
table aliases on objects that support aliasing, and stops
unnecessarily joining group_values on the relation.

Additionally, it calls to_sql, if available, on objects
sent to column_alias_for, in order to get a more reasonable
alias string than a non-string's default to_str method.
Merge pull request #6842 from ernie/handle-non-strings-in-grouped-calculations

Stop assuming strings for grouped calculations
correct line numbers for reader and writer methods
Merge pull request #6847 from benolee/patch-1

Correct line numbers for reader and writer methods in AS configurable

The line number for the reader method is off by one due to the local variable line being reassigned to the writer's line.

This commit would provide correct line numbers for backtraces and method introspection (for example, method(:reader).source_location).