Remove sprockets exception from main asset helpers

This commit is contained in:
Joshua Peek 2011-03-28 13:54:58 -05:00
parent 8ceec5c6c2
commit 41cc643065
2 changed files with 0 additions and 20 deletions

@ -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