1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove Sprockets compute_public_path, AV compute_public_path can be used directly

This commit is contained in:
Guillermo Iguaran 2011-09-23 13:34:11 -05:00
parent 8bde477e9d
commit a29c2bfba3

View file

@ -13,7 +13,6 @@ module Sprockets
controller = self.controller if respond_to?(:controller)
paths = RailsHelper::AssetPaths.new(config, controller)
paths.asset_environment = asset_environment
paths.asset_prefix = asset_prefix
paths.asset_digests = asset_digests
paths.compile_assets = compile_assets?
paths.digest_assets = digest_assets?
@ -102,10 +101,6 @@ module Sprockets
class AssetNotPrecompiledError < StandardError; end
def compute_public_path(source, dir, options = {})
super(source, asset_prefix, options)
end
# Return the filesystem path for the source
def compute_source_path(source, ext)
asset_for(source, ext)