diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-26 11:24:56 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-26 11:24:56 -0500 |
commit | dbb32115ef45dd58667e450125deba80d7016341 (patch) | |
tree | 83089bedcf1028e301a961910560b6c99185cb7c /railties/lib/rails/configuration.rb | |
parent | 79a4d505fa8bd83189296be60cf62601e6783597 (diff) | |
download | rails-dbb32115ef45dd58667e450125deba80d7016341.tar.gz rails-dbb32115ef45dd58667e450125deba80d7016341.tar.bz2 rails-dbb32115ef45dd58667e450125deba80d7016341.zip |
Enable static asset server by default
Diffstat (limited to 'railties/lib/rails/configuration.rb')
-rw-r--r-- | railties/lib/rails/configuration.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index 2b362a9c50..f6159b9347 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -10,7 +10,7 @@ module Rails :log_path, :log_level, :logger, :preload_frameworks, :database_configuration_file, :cache_store, :time_zone, :view_path, :metals, :controller_paths, :routes_configuration_file, - :eager_load_paths, :dependency_loading, :paths + :eager_load_paths, :dependency_loading, :paths, :serve_static_assets def initialize set_root_path! @@ -35,6 +35,7 @@ module Rails @controller_paths = default_controller_paths @routes_configuration_file = default_routes_configuration_file @database_configuration_file = default_database_configuration_file + @serve_static_assets = default_serve_static_assets for framework in default_frameworks self.send("#{framework}=", Rails::OrderedOptions.new) @@ -225,6 +226,10 @@ module Rails i18n end + def default_serve_static_assets + true + end + # Adds a single Gem dependency to the rails application. By default, it will require # the library with the same name as the gem. Use :lib to specify a different name. # |