diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2010-11-15 15:44:19 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-16 00:04:36 +0100 |
commit | 6747ae2708d2ad8a482f3dfcb346d007a51af77a (patch) | |
tree | ac57e4c78c2d6ea9fae0705c2675dfa84349b454 /actionpack/lib/action_view/helpers/asset_tag_helper.rb | |
parent | 7a38c8b9f5b8e36d56f7f8fa9cbbfa931c0ab26f (diff) | |
download | rails-6747ae2708d2ad8a482f3dfcb346d007a51af77a.tar.gz rails-6747ae2708d2ad8a482f3dfcb346d007a51af77a.tar.bz2 rails-6747ae2708d2ad8a482f3dfcb346d007a51af77a.zip |
reduced duplication between the javascript and stylesheet asset tag methods, also split the asset id caching methods into a separate module for easy inclusion and use by the asset include tag class and base asset tag helpers
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 065df849a4..880a5a0f28 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -1,14 +1,7 @@ -require 'thread' -require 'cgi' -require 'action_view/helpers/url_helper' -require 'action_view/helpers/tag_helper' require 'action_view/helpers/asset_tag_helpers/base_asset_helpers' require 'action_view/helpers/asset_tag_helpers/javascript_tag_helpers' require 'action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers' require 'action_view/helpers/asset_tag_helpers/asset_id_caching' -require 'active_support/core_ext/file' -require 'active_support/core_ext/object/blank' -require 'active_support/core_ext/string/output_safety' module ActionView # = Action View Asset Tag Helpers @@ -200,9 +193,9 @@ module ActionView # RewriteRule ^/release-\d+/(images|javascripts|stylesheets)/(.*)$ /$1/$2 [L] module AssetTagHelper include BaseAssetHelpers + include AssetIdCaching include JavascriptTagHelpers include StylesheetTagHelpers - include AssetIdCaching end end end |