Skip to content

Commit 1f40272

Browse files
committed
Asset alias error should only affect AV helpers
1 parent 8ca34d1 commit 1f40272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/rails/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def asset_digest_path(path, options = {})
130130

131131
if environment = assets_environment
132132
if asset = environment[path]
133-
if self.raise_runtime_errors && path != asset.logical_path
133+
if self.is_a?(ActionView::Base) && self.raise_runtime_errors && path != asset.logical_path
134134
raise AssetAliasUsed.new(path, asset.logical_path)
135135
end
136136

0 commit comments

Comments
 (0)