1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #40636 from the-spectator/document_fix

Fixes rdoc formatting [ci skip]
This commit is contained in:
Daniel Colson 2020-11-17 10:14:45 -05:00 committed by GitHub
commit 1aa14a6776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -102,11 +102,11 @@ module ActiveSupport
#
# === Prepending concerns
#
# Just like `include`, concerns also support `prepend` with a corresponding
# `prepended do` callback. `module ClassMethods` or `class_methods do` are
# Just like <tt>include</tt>, concerns also support <tt>prepend</tt> with a corresponding
# <tt>prepended do</tt> callback. <tt>module ClassMethods</tt> or <tt>class_methods do</tt> are
# prepended as well.
#
# `prepend` is also used for any dependencies.
# <tt>prepend</tt> is also used for any dependencies.
module Concern
class MultipleIncludedBlocks < StandardError #:nodoc:
def initialize

View file

@ -105,10 +105,10 @@ class Module
# * clean up monolithic junk-drawer classes by separating their concerns, and
# * stop leaning on protected/private for crude "this is internal stuff" modularity.
#
# === Prepending `concerning`
# === Prepending concerning
#
# `concerning` supports a `prepend: true` argument which will `prepend` the
# concern instead of using `include` for it.
# <tt>concerning</tt> supports a <tt>prepend: true</tt> argument which will <tt>prepend</tt> the
# concern instead of using <tt>include</tt> for it.
module Concerning
# Define a new concern and mix it in.
def concerning(topic, prepend: false, &block)