Dumping Rails configuration

How to access all configuration settings from environment.rb and (for
example) development.rb from a running Rails application?

I want to do something like:

<%= Rails.whole_configuration_hash.inspect %>