Skip to content

Commit 2808a5a

Browse files
committed
Fixed-width == and === docs do not work with RDoc short-hand
``` $ echo '+foo+' | rdoc --pipe <p><code>foo</code></p> $ echo '+==+' | rdoc --pipe <p>+==+</p> ```
1 parent b7e8b60 commit 2808a5a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

activerecord/lib/active_record/attribute_methods/serialization.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ module ClassMethods
5858
# semantically equal to be considered different.
5959
# For instance two hashes with the same keys and values but a different order have a
6060
# different serialized representation, but are semantically equal once deserialized.
61-
# If set to +true+ the comparison will be done on the deserialized object. This options
62-
# should only be enabled if the +type+ is known to have a proper +==+ method that deeply
63-
# compare the objects.
61+
# If set to +true+ the comparison will be done on the deserialized object.
62+
# This options should only be enabled if the +type+ is known to have
63+
# a proper <tt>==</tt> method that deeply compare the objects.
6464
# * +yaml+ - Optional. Yaml specific options. The allowed config is:
6565
# * +:permitted_classes+ - +Array+ with the permitted classes.
6666
# * +:unsafe_load+ - Unsafely load YAML blobs, allow YAML to load any class.

activerecord/lib/active_record/relation/predicate_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def self.references(attributes)
3737

3838
# Define how a class is converted to Arel nodes when passed to +where+.
3939
# The handler can be any object that responds to +call+, and will be used
40-
# for any value that +===+ the class given. For example:
40+
# for any value that <tt>===</tt> the class given. For example:
4141
#
4242
# MyCustomDateRange = Struct.new(:start, :end)
4343
# handler = proc do |column, range|

0 commit comments

Comments
 (0)