Skip to content

Commit

Permalink
Fix some code formatting in core_ext guide
Browse files Browse the repository at this point in the history
[ci skip]

<plus> is nonstandard Textile; RailsGuides::TextileExtensions::plusplus
is the method that causes multiple code-formatted `+` symbols to
generate crap like

    <code>1 <notextile><tt>+</tt></notextile> 2 ...</code>

instead of the expected output:

    <code>1 + 2 ...</code>
  • Loading branch information
mark-rushakoff committed May 17, 2012
1 parent 6a12900 commit 32f3c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_support_core_extensions.textile
Expand Up @@ -1819,7 +1819,7 @@ NOTE: Defined in +active_support/core_ext/numeric/bytes.rb+.

h4. Time

Enables the use of time calculations and declarations, like 45.minutes + 2.hours + 4.years.
Enables the use of time calculations and declarations, like @45.minutes <plus> 2.hours <plus> 4.years@.

These methods use Time#advance for precise date calculations when using from_now, ago, etc.
as well as adding or subtracting their results from a Time object. For example:
Expand Down

0 comments on commit 32f3c27

Please sign in to comment.