diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-23 00:32:27 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-23 00:32:27 +0000 |
commit | c6d6082562b91831cefc0aa53b74c3f4c2805e64 (patch) | |
tree | f90d93490cd42e2e0e9ad312c78780f2da019e7a /railties/environments | |
parent | b50a05cac32f7e1f70ea622e2c82972c87391dfa (diff) | |
download | rails-c6d6082562b91831cefc0aa53b74c3f4c2805e64.tar.gz rails-c6d6082562b91831cefc0aa53b74c3f4c2805e64.tar.bz2 rails-c6d6082562b91831cefc0aa53b74c3f4c2805e64.zip |
Added config/initializers where all ruby files within it are automatically loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r-- | railties/environments/environment.rb | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb index 6ffacd4023..162dbb4fe1 100644 --- a/railties/environments/environment.rb +++ b/railties/environments/environment.rb @@ -49,19 +49,7 @@ Rails::Initializer.run do |config| # config.active_record.default_timezone = :utc # See Rails::Configuration for more options -end - -# Add new inflection rules using the following format -# (all these examples are active by default): -# Inflector.inflections do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf -# Mime::Type.register "application/x-mobile", :mobile - -# Include your application configuration below + + # Application configuration should go into files in config/initializers + # -- all .rb files in that directory is automatically loaded +end
\ No newline at end of file |