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

Merge pull request #3115 from guilleiguaran/refactor-rails-helpers

Remove Sprockets compute_public_path, AV compute_plubic_path can be used
This commit is contained in:
Santiago Pastorino 2011-09-23 12:07:30 -07:00
commit 096717e6f7

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)