diff options
author | José Valim <jose.valim@gmail.com> | 2011-10-02 12:14:31 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-10-02 12:15:21 +0200 |
commit | 753424079e497d8ab7bc611093a34194200e3c7c (patch) | |
tree | 120e1b753e24a52d326829c55de6d40bf7937281 /railties/lib/rails/application/configuration.rb | |
parent | 1efe41dc366d21123842dea34ba95ddf1ab284d4 (diff) | |
download | rails-753424079e497d8ab7bc611093a34194200e3c7c.tar.gz rails-753424079e497d8ab7bc611093a34194200e3c7c.tar.bz2 rails-753424079e497d8ab7bc611093a34194200e3c7c.zip |
Provide initialize_on_precompile which, when set to false, does not initialize the app for precompilation. Defaults to true.
Diffstat (limited to 'railties/lib/rails/application/configuration.rb')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index c363e53c10..448521d2f0 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -37,19 +37,20 @@ module Rails @cache_store = [ :file_store, "#{root}/tmp/cache/" ] @assets = ActiveSupport::OrderedOptions.new - @assets.enabled = false - @assets.paths = [] - @assets.precompile = [ Proc.new{ |path| !File.extname(path).in?(['.js', '.css']) }, - /(?:\/|\\|\A)application\.(css|js)$/ ] - @assets.prefix = "/assets" - @assets.version = '' - @assets.debug = false - @assets.compile = true - @assets.digest = false - @assets.manifest = nil - @assets.cache_store = [ :file_store, "#{root}/tmp/cache/assets/" ] - @assets.js_compressor = nil - @assets.css_compressor = nil + @assets.enabled = false + @assets.paths = [] + @assets.precompile = [ Proc.new{ |path| !File.extname(path).in?(['.js', '.css']) }, + /(?:\/|\\|\A)application\.(css|js)$/ ] + @assets.prefix = "/assets" + @assets.version = '' + @assets.debug = false + @assets.compile = true + @assets.digest = false + @assets.manifest = nil + @assets.cache_store = [ :file_store, "#{root}/tmp/cache/assets/" ] + @assets.js_compressor = nil + @assets.css_compressor = nil + @assets.initialize_on_precompile = true end def compiled_asset_path |