diff options
author | Sunny Ripert <sunny@sunfox.org> | 2013-05-28 14:34:47 +0200 |
---|---|---|
committer | Sunny Ripert <sunny@sunfox.org> | 2013-05-28 14:38:02 +0200 |
commit | 606c09b8dbaa65ab124baaa0ee62a885a25a2222 (patch) | |
tree | 2ce87343100ce90b7ba2b677c0a81c2a567cc528 /guides/source/active_support_core_extensions.md | |
parent | 666d028bb82428a0649935b1d1814db0e20a406f (diff) | |
download | rails-606c09b8dbaa65ab124baaa0ee62a885a25a2222.tar.gz rails-606c09b8dbaa65ab124baaa0ee62a885a25a2222.tar.bz2 rails-606c09b8dbaa65ab124baaa0ee62a885a25a2222.zip |
Consistent use of one space only after punctuation
Diffstat (limited to 'guides/source/active_support_core_extensions.md')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index c012ded888..274cffbfab 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -1038,7 +1038,7 @@ For convenience `class_attribute` also defines an instance predicate which is th When `:instance_reader` is `false`, the instance predicate returns a `NoMethodError` just like the reader method. -If you do not want the instance predicate, pass `instance_predicate: false` and it will not be defined. +If you do not want the instance predicate, pass `instance_predicate: false` and it will not be defined. NOTE: Defined in `active_support/core_ext/class/attribute.rb` @@ -1423,7 +1423,7 @@ The method `pluralize` returns the plural of its receiver: As the previous example shows, Active Support knows some irregular plurals and uncountable nouns. Built-in rules can be extended in `config/initializers/inflections.rb`. That file is generated by the `rails` command and has instructions in comments. -`pluralize` can also take an optional `count` parameter. If `count == 1` the singular form will be returned. For any other value of `count` the plural form will be returned: +`pluralize` can also take an optional `count` parameter. If `count == 1` the singular form will be returned. For any other value of `count` the plural form will be returned: ```ruby "dude".pluralize(0) # => "dudes" |