Merge pull request #11638 from neerajdotname/make_order_independent_association_test

make test not depend on order
Merge pull request #11637 from neerajdotname/make_test_not_depend_on_order

reset default timezone and make test order independent
Merge pull request #11635 from neerajdotname/make_test_order_independent_by_resetting_timezone

make test order independent by resetting timezone
Merge pull request #11634 from neerajdotname/fix_order_dependent_test_for_migration

fix order dependent test related to migration
Merge pull request #11641 from ankit8898/test_cleanup

Cleanup of class_name
Merge pull request #11640 from pawel2105/manifest_fix

Changed stylesheet load order in the stylesheet manifest generator.
Don't rewrite AR connection#commit_db_transaction method globally
Unneeded assertion
Clear class ivar before testing
Properly repair validations when dynamically added
Revert "fix order dependent test related to migration"

This reverts commit 10259c3e906da2191ef0d43cd664a3b5504d9f8c.

reason: this causes rake test_mysql and test_mysql2 fail
Avoid "uninitialized constant ActiveRecord::PendingMigrationError::Rails"
Add ability to specify how a class is converted to Arel predicate

This adds the ability for rails apps or gems to have granular control
over how a domain object is converted to sql. One simple use case would
be to add support for Regexp. Another simple case would be something
like the following:

    class DateRange < Struct.new(:start, :end)
      def include?(date)
        (start..end).cover?(date)
      end
    end

    class DateRangePredicate
      def call(attribute, range)
        attribute.in(range.start..range.end)
      end
    end

    ActiveRecord::PredicateBuilder.register_handler(DateRange,
      DateRangePredicate.new)

More complex cases might include taking a currency object and converting
it from EUR to USD before performing the query.

By moving the existing handlers to this format, we were also able to
nicely refactor a rather nasty method in PredicateBuilder.
Added Time#middle_of_day

Added middle_of_day method to Date and DateTime
Merge pull request #11608 from arunagw/ruby-from-rubygems

grab executable from rubygems
Add Time#to_s(:iso8601) for easy conversion of times to the iso8601 format for easy Javascript date parsing
remove duplicate method

This method is already present in helper.rb
use method with_active_record_default_timezone
interceptor should mimick original method

This fix also makes the test order independent.
Added SanitizeHelper to rails guide docs [ci skip]

Added SanitizeHelper to rails guide docs [ci skip]

Added SanitizeHelper to rails guide docs update [ci skip]