Skip to content

Commit a801aa7

Browse files
Mark up inline code [ci-skip]
1 parent e37adfe commit a801aa7

File tree

36 files changed

+82
-82
lines changed

36 files changed

+82
-82
lines changed

actionpack/lib/action_controller/metal/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def helpers
9191
end
9292
end
9393

94-
# Override modules_for_helpers to accept :all as argument, which loads
94+
# Override modules_for_helpers to accept +:all+ as argument, which loads
9595
# all helpers in helpers_path.
9696
#
9797
# ==== Parameters

actionpack/lib/action_controller/metal/streaming.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module ActionController # :nodoc:
2424
# Ruby implementation).
2525
#
2626
# Streaming can be added to a given template easily, all you need to do is
27-
# to pass the :stream option.
27+
# to pass the +:stream+ option.
2828
#
2929
# class PostsController
3030
# def index
@@ -59,8 +59,8 @@ module ActionController # :nodoc:
5959
# render stream: true
6060
# end
6161
#
62-
# Notice that :stream only works with templates. Rendering :json
63-
# or :xml with :stream won't work.
62+
# Notice that +:stream+ only works with templates. Rendering +:json+
63+
# or +:xml+ with +:stream+ won't work.
6464
#
6565
# == Communication between layout and template
6666
#

actionpack/lib/action_dispatch/http/mime_negotiation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def format=(extension)
132132
# Sets the \formats by string extensions. This differs from #format= by allowing you
133133
# to set multiple, ordered formats, which is useful when you want to have a fallback.
134134
#
135-
# In this example, the :iphone format will be used if it's available, otherwise it'll fallback
136-
# to the :html format.
135+
# In this example, the +:iphone+ format will be used if it's available, otherwise it'll fallback
136+
# to the +:html+ format.
137137
#
138138
# class ApplicationController < ActionController::Base
139139
# before_action :adjust_format_for_iphone_with_html_fallback

actionpack/lib/action_dispatch/http/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def remote_ip=(remote_ip)
299299

300300
# Returns the unique request id, which is based on either the X-Request-Id header that can
301301
# be generated by a firewall, load balancer, or web server, or by the RequestId middleware
302-
# (which sets the action_dispatch.request_id environment variable).
302+
# (which sets the +action_dispatch.request_id+ environment variable).
303303
#
304304
# This unique ID is useful for tracing a request from end-to-end as part of logging or debugging.
305305
# This relies on the Rack variable set by the ActionDispatch::RequestId middleware.

actionpack/lib/action_dispatch/middleware/cookies.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def use_cookies_with_metadata
139139
#
140140
# cookies.delete :user_name
141141
#
142-
# Please note that if you specify a :domain when setting a cookie, you must also specify the domain when deleting the cookie:
142+
# Please note that if you specify a +:domain+ when setting a cookie, you must also specify the domain when deleting the cookie:
143143
#
144144
# cookies[:name] = {
145145
# value: 'a yummy cookie',
@@ -199,7 +199,7 @@ class Cookies
199199
# Raised when storing more than 4K of session data.
200200
CookieOverflow = Class.new StandardError
201201

202-
# Include in a cookie jar to allow chaining, e.g. cookies.permanent.signed.
202+
# Include in a cookie jar to allow chaining, e.g. +cookies.permanent.signed+.
203203
module ChainedCookieJars
204204
# Returns a jar that'll automatically set the assigned cookies to have an expiration date 20 years from now. Example:
205205
#

actionpack/lib/action_dispatch/testing/assertions/routing.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def setup # :nodoc:
1818
# match +path+. Basically, it asserts that \Rails recognizes the route given by +expected_options+.
1919
#
2020
# Pass a hash in the second argument (+path+) to specify the request method. This is useful for routes
21-
# requiring a specific HTTP method. The hash should contain a :path with the incoming request path
22-
# and a :method containing the required HTTP verb.
21+
# requiring a specific HTTP method. The hash should contain a +:path+ with the incoming request path
22+
# and a +:method+ containing the required HTTP verb.
2323
#
2424
# # Asserts that POSTing to /items will call the create action on ItemsController
2525
# assert_recognizes({controller: 'items', action: 'create'}, {path: 'items', method: :post})

actionview/lib/action_view/helpers/asset_url_helper.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def asset_path(source, options = {})
219219

220220
# Computes the full URL to an asset in the public directory. This
221221
# will use +asset_path+ internally, so most of their behaviors
222-
# will be the same. If :host options is set, it overwrites global
222+
# will be the same. If +:host+ options is set, it overwrites global
223223
# +config.action_controller.asset_host+ setting.
224224
#
225225
# All other options provided are forwarded to +asset_path+ call.
@@ -324,7 +324,7 @@ def javascript_path(source, options = {})
324324

325325
# Computes the full URL to a JavaScript asset in the public javascripts directory.
326326
# This will use +javascript_path+ internally, so most of their behaviors will be the same.
327-
# Since +javascript_url+ is based on +asset_url+ method you can set :host options. If :host
327+
# Since +javascript_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+
328328
# options is set, it overwrites global +config.action_controller.asset_host+ setting.
329329
#
330330
# javascript_url "js/xmlhr.js", host: "http://stage.example.com" # => http://stage.example.com/assets/js/xmlhr.js
@@ -351,7 +351,7 @@ def stylesheet_path(source, options = {})
351351

352352
# Computes the full URL to a stylesheet asset in the public stylesheets directory.
353353
# This will use +stylesheet_path+ internally, so most of their behaviors will be the same.
354-
# Since +stylesheet_url+ is based on +asset_url+ method you can set :host options. If :host
354+
# Since +stylesheet_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+
355355
# options is set, it overwrites global +config.action_controller.asset_host+ setting.
356356
#
357357
# stylesheet_url "css/style.css", host: "http://stage.example.com" # => http://stage.example.com/assets/css/style.css
@@ -381,7 +381,7 @@ def image_path(source, options = {})
381381

382382
# Computes the full URL to an image asset.
383383
# This will use +image_path+ internally, so most of their behaviors will be the same.
384-
# Since +image_url+ is based on +asset_url+ method you can set :host options. If :host
384+
# Since +image_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+
385385
# options is set, it overwrites global +config.action_controller.asset_host+ setting.
386386
#
387387
# image_url "edit.png", host: "http://stage.example.com" # => http://stage.example.com/assets/edit.png
@@ -407,7 +407,7 @@ def video_path(source, options = {})
407407

408408
# Computes the full URL to a video asset in the public videos directory.
409409
# This will use +video_path+ internally, so most of their behaviors will be the same.
410-
# Since +video_url+ is based on +asset_url+ method you can set :host options. If :host
410+
# Since +video_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+
411411
# options is set, it overwrites global +config.action_controller.asset_host+ setting.
412412
#
413413
# video_url "hd.avi", host: "http://stage.example.com" # => http://stage.example.com/videos/hd.avi
@@ -433,7 +433,7 @@ def audio_path(source, options = {})
433433

434434
# Computes the full URL to an audio asset in the public audios directory.
435435
# This will use +audio_path+ internally, so most of their behaviors will be the same.
436-
# Since +audio_url+ is based on +asset_url+ method you can set :host options. If :host
436+
# Since +audio_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+
437437
# options is set, it overwrites global +config.action_controller.asset_host+ setting.
438438
#
439439
# audio_url "horse.wav", host: "http://stage.example.com" # => http://stage.example.com/audios/horse.wav
@@ -458,7 +458,7 @@ def font_path(source, options = {})
458458

459459
# Computes the full URL to a font asset.
460460
# This will use +font_path+ internally, so most of their behaviors will be the same.
461-
# Since +font_url+ is based on +asset_url+ method you can set :host options. If :host
461+
# Since +font_url+ is based on +asset_url+ method you can set +:host+ options. If +:host+
462462
# options is set, it overwrites global +config.action_controller.asset_host+ setting.
463463
#
464464
# font_url "font.ttf", host: "http://stage.example.com" # => http://stage.example.com/fonts/font.ttf

actionview/lib/action_view/helpers/form_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ def fields(scope = nil, model: nil, **options, &block)
10871087

10881088
# Returns a label tag tailored for labelling an input field for a specified attribute (identified by +method+) on an object
10891089
# assigned to the template (identified by +object+). The text of label will default to the attribute name unless a translation
1090-
# is found in the current I18n locale (through helpers.label.<modelname>.<attribute>) or you specify it explicitly.
1090+
# is found in the current I18n locale (through <tt>helpers.label.<modelname>.<attribute></tt>) or you specify it explicitly.
10911091
# Additional options on the label tag can be passed as a hash with +options+. These options will be tagged
10921092
# onto the HTML as an HTML element attribute as in the example shown, except for the <tt>:value</tt> option, which is designed to
10931093
# target labels for radio_button tags (where the value is used in the ID of the input tag).
@@ -2302,7 +2302,7 @@ def fields(scope = nil, model: nil, **options, &block)
23022302

23032303
# Returns a label tag tailored for labelling an input field for a specified attribute (identified by +method+) on an object
23042304
# assigned to the template (identified by +object+). The text of label will default to the attribute name unless a translation
2305-
# is found in the current I18n locale (through helpers.label.<modelname>.<attribute>) or you specify it explicitly.
2305+
# is found in the current I18n locale (through <tt>helpers.label.<modelname>.<attribute></tt>) or you specify it explicitly.
23062306
# Additional options on the label tag can be passed as a hash with +options+. These options will be tagged
23072307
# onto the HTML as an HTML element attribute as in the example shown, except for the <tt>:value</tt> option, which is designed to
23082308
# target labels for radio_button tags (where the value is used in the ID of the input tag).

actionview/lib/action_view/helpers/form_options_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def time_zone_options_for_select(selected = nil, priority_zones = nil, model = :
600600
# * <tt>:index_as_value</tt> - Defaults to false, set to true to use the indexes from
601601
# <tt>I18n.translate("date.day_names")</tt> as the values. By default, Sunday is always 0.
602602
# * <tt>:day_format</tt> - The I18n key of the array to use for the weekday options.
603-
# Defaults to :day_names, set to :abbr_day_names for abbreviations.
603+
# Defaults to +:day_names+, set to +:abbr_day_names+ for abbreviations.
604604
# * <tt>:beginning_of_week</tt> - Defaults to Date.beginning_of_week.
605605
#
606606
# NOTE: Only the option tags are returned, you have to wrap this call in

actionview/lib/action_view/helpers/number_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Helpers # :nodoc:
1515
# unchanged if can't be converted into a valid number.
1616
module NumberHelper
1717
# Raised when argument +number+ param given to the helpers is invalid and
18-
# the option :raise is set to +true+.
18+
# the option +:raise+ is set to +true+.
1919
class InvalidNumberError < StandardError
2020
attr_accessor :number
2121
def initialize(number)

0 commit comments

Comments
 (0)