#read_entry in ActiveSupport::Cache::FileStore should log details of the exception when an exception is thrown.
Fix bug when Rails.application is defined but is nil. See #881
Restore the frozen state on rollback. Fixes #6417.

Currently, when saving a frozen record, an exception would be thrown
which causes a rollback. However, there is a bug in active record that
"defrost" the record as a side effect:

    >> t = Topic.new
    => #<Topic id: nil, ...>
    >> t.freeze
    => #<Topic id: nil, ...>
    >> t.save
    RuntimeError: can't modify a frozen Hash
    >> t.frozen?
    => false
    >> t.save
    => true

This patch fixes the bug by explictly restoring the frozen state on the
attributes Hash after every rollback.
Merge pull request #6429 from marcandre/fix_test_request

Fix bug when Rails.application is defined but is nil. See #881
using __method__ for the command method calls
Merge pull request #5125 from winston/log_exception_when_cache_read_fails

#read_entry in ActiveSupport::Cache::FileStore should log details of the exception when an exception is thrown
Merge pull request #6420 from chancancode/master_restore_frozen_state_on_rollback

Restore frozen state on rollback, fixes #6417
Use relative path to sqlite3 db in `rails db` command

Rails uses sqlit3 db file with a path relative to the rails root. It
allows to execute server not from rails root only. For example you
can fire `./spec/dummy/script/rails s` to start dummy application
server if you develop some engine gem.

Now the `rails db` command uses relative paths also and you can explore
your dummy db via `./spec/dummy/script/rails db` command.
Fix `rails db -h` and cosmetic fixes in usage banners

Ruby tries to use '-h' as short version of '--header' by default
https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L1372-1381.
To force `rails db -h` prints an usage message we should add the `-h`
options explicitly.
Merge pull request #6150 from avakhov/dbconsole-fixes

Rails db console improvements
remove useless require
Use require_dependency in generated controllers

Using require in development mode will prevent required files from
reloading, even if they're changed. In order to keep namespaced
application_controller reloadable, we need to use require_dependency
instead of require.
Merge pull request #6435 from janx/remove_useless_require

remove useless require
Use new hash syntax for generators gem method

The Gemfile of new application uses ruby 1.9 hashes. Gem method of
generators should use them too. It prevents from mixing two kinds of
syntax in one file.
Merge pull request #6437 from avakhov/gen-gem-method

Use new hash syntax for generators gem method
refactor lazy_load_hooks load position
Merge pull request #6439 from janx/remove_useless_require

refactor lazy_load_hooks load position, fix #6435
Convert Hash to HashWithIndifferentAccess in ActiveRecord::Store.

In order to make migration from 3.x apps easier, we should try to
convert
Hash instances to HashWithIndifferentAccess, to allow accessing values
with both symbol and a string. This is follow up to changes in 3c0bf043.
Move root method at TOP of routes file

Made the change as per the following text in routing guide:-
"You should put the root route at the top of the file,
because it is the most popular route and should be matched first."

However, if root is best left at bottom. We will change to fix that text
Merge pull request #6368 from Antiarchitect/store-indifferent-access

Support migrating from Hash to HashWithIndifferentAccess for accessing attributes.