diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-15 19:57:52 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-15 19:57:52 +0200 |
commit | afc828828ffffe7edeb4648a9d2aa4731191ae21 (patch) | |
tree | 8c85af7b1c0fa7fe1612d18f6d4573494f1d783b /actionpack/lib/action_view/helpers | |
parent | d84b2f37d018621aea99bfe30611ab75a02a291a (diff) | |
download | rails-afc828828ffffe7edeb4648a9d2aa4731191ae21.tar.gz rails-afc828828ffffe7edeb4648a9d2aa4731191ae21.tar.bz2 rails-afc828828ffffe7edeb4648a9d2aa4731191ae21.zip |
Remove the ability for engines to serve assets from the public directory.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb b/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb index 014a03c54d..1e00fd996b 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb @@ -30,9 +30,6 @@ module ActionView source = rewrite_extension(source, dir, ext) if ext source = "/#{dir}/#{source}" unless source[0] == ?/ - if controller.respond_to?(:env) && controller.env["action_dispatch.asset_path"] - source = rewrite_asset_path(source, controller.env["action_dispatch.asset_path"]) - end source = rewrite_asset_path(source, config.asset_path) has_request = controller.respond_to?(:request) |