aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2016-06-15 14:16:10 -0500
committerschneems <richard.schneeman@gmail.com>2016-08-29 13:16:07 -0500
commite8b081133a6780b37d1143becf4cfc945c41cb49 (patch)
tree02381b1333258e75257ef21208ebf45e685b0e3a
parentb8905f3c85e0bdd96c01ca181eda91705db0bc74 (diff)
downloadrails-e8b081133a6780b37d1143becf4cfc945c41cb49.tar.gz
rails-e8b081133a6780b37d1143becf4cfc945c41cb49.tar.bz2
rails-e8b081133a6780b37d1143becf4cfc945c41cb49.zip
Match method signature
-rw-r--r--actionview/lib/action_view/helpers/asset_url_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/lib/action_view/helpers/asset_url_helper.rb b/actionview/lib/action_view/helpers/asset_url_helper.rb
index 844826386a..26ba955f07 100644
--- a/actionview/lib/action_view/helpers/asset_url_helper.rb
+++ b/actionview/lib/action_view/helpers/asset_url_helper.rb
@@ -331,7 +331,7 @@ module ActionView
# Computes the path to a stylesheet asset in the public folder.
# This uses +stylesheet_path+ and skips any asset lookups by assuming the asset is in the
# `public` folder.
- def public_stylesheet_path(source, options)
+ 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 # aliased to avoid conflicts with a public_stylesheet_path named route
@@ -377,7 +377,7 @@ module ActionView
# Computes the path to a image asset in the public folder.
# This uses +image_path+ and skips any asset lookups by assuming the asset is in the
# `public` folder.
- def public_image_path(source, options)
+ 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 # aliased to avoid conflicts with a public_image_path named route
@@ -419,7 +419,7 @@ module ActionView
# Computes the path to a video asset in the public folder.
# This uses +video_path+ and skips any asset lookups by assuming the asset is in the
# `public` folder.
- def public_video_path(source, options)
+ 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 # aliased to avoid conflicts with a public_video_path named route