Skip to content

Commit 003573b

Browse files
committed
Merge pull request #250 from rails/scope-alias-error-to-av
Scope Asset Alias error to AV helpers
2 parents dc5713b + 9b43bbe commit 003573b

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)