aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2016-06-15 11:39:55 -0500
committerschneems <richard.schneeman@gmail.com>2016-08-29 13:16:07 -0500
commit5b576af97efe7ff5375572ad325b18429e9a75a8 (patch)
tree15f625ddded7f9dee7d8f29391e5e9851c8b5127 /actionview
parent4b84ef6d8bdad08a4b9860c6545a08f26a963d34 (diff)
downloadrails-5b576af97efe7ff5375572ad325b18429e9a75a8.tar.gz
rails-5b576af97efe7ff5375572ad325b18429e9a75a8.tar.bz2
rails-5b576af97efe7ff5375572ad325b18429e9a75a8.zip
Add descriptive comment
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/asset_url_helper.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/actionview/lib/action_view/helpers/asset_url_helper.rb b/actionview/lib/action_view/helpers/asset_url_helper.rb
index 61e87e6f78..8db65adc5d 100644
--- a/actionview/lib/action_view/helpers/asset_url_helper.rb
+++ b/actionview/lib/action_view/helpers/asset_url_helper.rb
@@ -171,7 +171,7 @@ module ActionView
def public_asset_path(source, options = {})
path_to_asset(source, {public_folder: true}.merge!(options))
end
- alias_method :path_to_public_asset, :public_asset_path
+ alias_method :path_to_public_asset, :public_asset_path # aliased to avoid conflicts with an font_path named route
# Computes the full URL to an asset in the public directory. This
# will use +asset_path+ internally, so most of their behaviors
@@ -277,7 +277,7 @@ module ActionView
def public_javascript_path(source, options = {})
path_to_javascript(source, {public_folder: true}.merge!(options))
end
- alias_method :path_to_public_javascript, :public_javascript_path
+ alias_method :path_to_public_javascript, :public_javascript_path # aliased to avoid conflicts with an font_path named route
# Computes the full URL to a JavaScript asset in the public javascripts directory.
# This will use +javascript_path+ internally, so most of their behaviors will be the same.
@@ -309,7 +309,7 @@ module ActionView
def public_stylesheet_path(source, options)
path_to_stylesheet(source, {public_folder: true}.merge!(options))
end
- alias_method :path_to_public_stylesheet, :public_stylesheet_path
+ alias_method :path_to_public_stylesheet, :public_stylesheet_path # aliased to avoid conflicts with an font_path named route
# Computes the full URL to a stylesheet asset in the public stylesheets directory.
# This will use +stylesheet_path+ internally, so most of their behaviors will be the same.
@@ -344,7 +344,7 @@ module ActionView
def public_image_path(source, options)
path_to_image(source, {public_folder: true}.merge!(options))
end
- alias_method :path_to_public_image, :public_image_path
+ alias_method :path_to_public_image, :public_image_path # aliased to avoid conflicts with an font_path named route
# Computes the full URL to an image asset.
# This will use +image_path+ internally, so most of their behaviors will be the same.
@@ -375,7 +375,7 @@ module ActionView
def public_video_path(source, options)
path_to_video(source, {public_folder: true}.merge!(options))
end
- alias_method :path_to_public_video, :public_video_path
+ alias_method :path_to_public_video, :public_video_path # aliased to avoid conflicts with an font_path named route
# Computes the full URL to a video asset in the public videos directory.
# This will use +video_path+ internally, so most of their behaviors will be the same.
@@ -406,7 +406,7 @@ module ActionView
def public_audio_path(source, options = {})
path_to_audio(source, {public_folder: true}.merge!(options))
end
- alias_method :path_to_public_audio, :public_audio_path
+ alias_method :path_to_public_audio, :public_audio_path # aliased to avoid conflicts with an font_path named route
# Computes the full URL to an audio asset in the public audios directory.
# This will use +audio_path+ internally, so most of their behaviors will be the same.
@@ -436,7 +436,7 @@ module ActionView
def public_font_path(source, options = {})
path_to_font(source, {public_folder: true}.merge!(options))
end
- alias_method :path_to_public_font, :public_font_path
+ alias_method :path_to_public_font, :public_font_path # aliased to avoid conflicts with an font_path named route
# Computes the full URL to a font asset.
# This will use +font_path+ internally, so most of their behaviors will be the same.