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:
commit
096717e6f7
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue