Skip to content

Commit 8cc4159

Browse files
Use <tt>Foo::Bar</tt> instead of +Foo::Bar+
The latter doesn't render as code in HTML output. Regex used in Rubymine to locate the latter form: (\+)(:*\w+:(?::|\w)+)(\+)
1 parent 504e539 commit 8cc4159

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

actionmailer/lib/action_mailer/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def mailer_name
486486
self.class.mailer_name
487487
end
488488

489-
# Allows you to pass random and unusual headers to the new +Mail::Message+ object
489+
# Allows you to pass random and unusual headers to the new <tt>Mail::Message</tt> object
490490
# which will add them to itself.
491491
#
492492
# headers['X-Special-Domain-Specific-Header'] = "SecretValue"

actionpack/lib/action_controller/metal/params_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module ActionController
6666
# class Admin::UsersController < ApplicationController
6767
# end
6868
#
69-
# will try to check if +Admin::User+ or +User+ model exists, and use it to
69+
# will try to check if <tt>Admin::User</tt> or +User+ model exists, and use it to
7070
# determine the wrapper key respectively. If both models don't exist,
7171
# it will then fallback to use +user+ as the key.
7272
module ParamsWrapper

actionpack/lib/action_controller/metal/streaming.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,17 @@ module ActionController #:nodoc:
139139
# session or flash after the template starts rendering will not propagate
140140
# to the client.
141141
#
142-
# If you try to modify cookies, session or flash, an +ActionDispatch::ClosedError+
142+
# If you try to modify cookies, session or flash, an <tt>ActionDispatch::ClosedError</tt>
143143
# will be raised, showing those objects are closed for modification.
144144
#
145145
# == Middlewares
146146
#
147147
# Middlewares that need to manipulate the body won't work with streaming.
148148
# You should disable those middlewares whenever streaming in development
149-
# or production. For instance, +Rack::Bug+ won't work when streaming as it
149+
# or production. For instance, <tt>Rack::Bug</tt> won't work when streaming as it
150150
# needs to inject contents in the HTML body.
151151
#
152-
# Also +Rack::Cache+ won't work with streaming as it does not support
152+
# Also <tt>Rack::Cache</tt> won't work with streaming as it does not support
153153
# streaming bodies yet. Whenever streaming Cache-Control is automatically
154154
# set to "no-cache".
155155
#

activemodel/lib/active_model/serialization.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module ActiveModel
3434
#
3535
# Most of the time though, you will want to include the JSON or XML
3636
# serializations. Both of these modules automatically include the
37-
# +ActiveModel::Serialization+ module, so there is no need to explicitly
37+
# <tt>ActiveModel::Serialization</tt> module, so there is no need to explicitly
3838
# include it.
3939
#
4040
# A minimal implementation including XML and JSON would be:

railties/lib/rails/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Configuration
1616
#
1717
# config.middleware.use Magical::Unicorns
1818
#
19-
# This will put the +Magical::Unicorns+ middleware on the end of the stack.
19+
# This will put the <tt>Magical::Unicorns</tt> middleware on the end of the stack.
2020
# You can use +insert_before+ if you wish to add a middleware before another:
2121
#
2222
# config.middleware.insert_before ActionDispatch::Head, Magical::Unicorns

railties/lib/rails/paths.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Paths
88
# root.add "app/controllers", :eager_load => true
99
#
1010
# The command above creates a new root object and add "app/controllers" as a path.
11-
# This means we can get a +Rails::Paths::Path+ object back like below:
11+
# This means we can get a <tt>Rails::Paths::Path</tt> object back like below:
1212
#
1313
# path = root["app/controllers"]
1414
# path.eager_load? # => true

0 commit comments

Comments
 (0)