Skip to content

Commit

Permalink
init guide: Cover beginnings of rails/application.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Dec 17, 2010
1 parent 5e0daa0 commit 225f952
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions railties/guides/source/initialization.textile
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,17 @@ The next file that is required is another Active Support core extension, this ti

For more information see the "Extensions to Logger":http://guides.rubyonrails.org/active_support_core_extensions.html#extensions-to-logger section from the Active Support Core Extensions Guide.

h4. +railties/lib/rails/application.rb+

The next file required by +railties/lib/rails.rb+ is +application.rb+. This file defines the +Rails::Application+ constant which the application's class defined in +config/application.rb+ in a standard Rails application depends on. Before the +Rails::Application+ class is defined however, there's some other files that get required first.

The first of these is +active_support/core_ext/hash/reverse_merge+ which can be "read about in the Active Support Core Extensions guide":http://guides.rubyonrails.org/active_support_core_extensions.html#merging under the "Merging" section.

h4. +active_support/file_update_checker.rb+

The +ActiveSupport::FileUpdateChecker+ class defined within this file is responsible for checking if a file has been updated since it was last checked. This is used for monitoring the routes file for changes during development environment runs.





Expand Down

0 comments on commit 225f952

Please sign in to comment.