Permalink
Browse files

Remove sprockets exception from main asset helpers

  • Loading branch information...
1 parent 8ceec5c commit 41cc6430650d0e90e892e0bd9a29ddcefd8a9c64 @josh josh committed Mar 28, 2011
@@ -173,16 +173,6 @@ def javascript_path(source)
#
# javascript_include_tag :all, :cache => true, :recursive => true
def javascript_include_tag(*sources)
- if config.perform_caching
- sources = sources.map do |source|
- if source =~ /^\/assets\/(.+)/
- "/assets/#{Rails.application.assets.url($1)}"
- else
- source
- end
- end
- end
-
@javascript_include ||= JavascriptIncludeTag.new(config, asset_paths)
@javascript_include.include_tag(*sources)
end
@@ -136,16 +136,6 @@ def stylesheet_path(source)
# stylesheet_link_tag :all, :concat => true
#
def stylesheet_link_tag(*sources)
- if config.perform_caching
- sources = sources.map do |source|
- if source =~ /^\/assets\/(.+)/
- "/assets/#{Rails.application.assets.url($1)}"
- else
- source
- end
- end
- end
-
@stylesheet_include ||= StylesheetIncludeTag.new(config, asset_paths)
@stylesheet_include.include_tag(*sources)
end

0 comments on commit 41cc643

Please sign in to comment.