mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove sprockets exception from main asset helpers
This commit is contained in:
@@ -173,16 +173,6 @@ module ActionView
|
||||
#
|
||||
# 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 @@ module ActionView
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user