We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f591c12 commit d7ad894Copy full SHA for d7ad894
lib/sprockets/rails/helper.rb
@@ -71,16 +71,9 @@ def compute_asset_path(path, options = {})
71
# method checks for errors before returning path.
72
def asset_path(source, options = {})
73
check_errors_for(source, options)
74
- path_to_asset(source, options)
75
- end
76
- alias :path_to_asset_with_errors :asset_path
77
-
78
- # Computes the full URL to a asset in the public directory. This
79
- # will use +asset_path+ internally, so most of their behaviors
80
- # will be the same.
81
- def asset_url(source, options = {})
82
- path_to_asset_with_errors(source, options.merge(:protocol => :request))
+ super(source, options)
83
end
+ alias :path_to_asset :asset_path
84
85
# Get digest for asset path.
86
#
0 commit comments