Skip to content

Commit

Permalink
More using <tt>x</tt> instead of +x+ when the latter renders improperly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-rushakoff committed Apr 28, 2012
1 parent 43af34c commit c13d36c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/metal/params_wrapper.rb
Expand Up @@ -48,7 +48,7 @@ module ActionController
# method attribute_names.
#
# If you're going to pass the parameters to an +ActiveModel+ object (such as
# +User.new(params[:user])+), you might consider passing the model class to
# <tt>User.new(params[:user])</tt>), you might consider passing the model class to
# the method instead. The +ParamsWrapper+ will actually try to determine the
# list of attribute names from the model and only wrap those attributes:
#
Expand Down
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/middleware/reloader.rb
Expand Up @@ -20,8 +20,8 @@ module ActionDispatch
# By default, ActionDispatch::Reloader is included in the middleware stack
# only in the development environment; specifically, when config.cache_classes
# is false. Callbacks may be registered even when it is not included in the
# middleware stack, but are executed only when +ActionDispatch::Reloader.prepare!+
# or +ActionDispatch::Reloader.cleanup!+ are called manually.
# middleware stack, but are executed only when <tt>ActionDispatch::Reloader.prepare!</tt>
# or <tt>ActionDispatch::Reloader.cleanup!</tt> are called manually.
#
class Reloader
include ActiveSupport::Callbacks
Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/explain.rb
Expand Up @@ -70,7 +70,7 @@ def exec_explain(queries) # :nodoc:
# the threshold is set to 0.
#
# As the name of the method suggests this only applies to automatic
# EXPLAINs, manual calls to +ActiveRecord::Relation#explain+ run.
# EXPLAINs, manual calls to <tt>ActiveRecord::Relation#explain</tt> run.
def silence_auto_explain
current = Thread.current
original, current[:available_queries_for_explain] = current[:available_queries_for_explain], false
Expand Down

0 comments on commit c13d36c

Please sign in to comment.