aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/asset_url_helper.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2016-10-27 00:13:15 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2016-10-27 00:27:47 +0300
commit5faa9a235c46037a3b8e4f3308fd7ccadaae8039 (patch)
treeea89b18ff5cca42117dafa96c8772cc6e00d2227 /actionview/lib/action_view/helpers/asset_url_helper.rb
parent0b4679f192a4892a6eb09bb6103d967408cfdc83 (diff)
downloadrails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.tar.gz
rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.tar.bz2
rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.zip
Add missing `+` around a some literals.
Mainly around `nil` [ci skip]
Diffstat (limited to 'actionview/lib/action_view/helpers/asset_url_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/asset_url_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/asset_url_helper.rb b/actionview/lib/action_view/helpers/asset_url_helper.rb
index e0de2ff4d6..79305d4880 100644
--- a/actionview/lib/action_view/helpers/asset_url_helper.rb
+++ b/actionview/lib/action_view/helpers/asset_url_helper.rb
@@ -98,7 +98,7 @@ module ActionView
# to avoid warnings in the client about mixed media.
# Note that the request parameter might not be supplied, e.g. when the assets
# are precompiled via a Rake task. Make sure to use a Proc instead of a lambda,
- # since a Proc allows missing parameters and sets them to nil.
+ # since a +Proc+ allows missing parameters and sets them to +nil+.
#
# config.action_controller.asset_host = Proc.new { |source, request|
# if request && request.ssl?
@@ -233,7 +233,7 @@ module ActionView
stylesheet: ".css"
}
- # Compute extname to append to asset path. Returns nil if
+ # Compute extname to append to asset path. Returns +nil+ if
# nothing should be added.
def compute_asset_extname(source, options = {})
return if options[:extname] == false