Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix CollectionProxy documentation markup

  • Loading branch information...
commit ab2e2a9d2b772cf4aef4d9f4f2d506a03c205035 1 parent 158a71b
Francesco Rodriguez authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 activerecord/lib/active_record/associations/collection_proxy.rb
View
16 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -112,7 +112,7 @@ class CollectionProxy < Relation
##
# :method: first
# Returns the first record, or the first +n+ records, from the collection.
- # If the collection is empty, the first form returns nil, and the second
+ # If the collection is empty, the first form returns +nil+, and the second
# form returns an empty array.
#
# class Person < ActiveRecord::Base
@@ -141,7 +141,7 @@ class CollectionProxy < Relation
##
# :method: last
# Returns the last record, or the last +n+ records, from the collection.
- # If the collection is empty, the first form returns nil, and the second
+ # If the collection is empty, the first form returns +nil+, and the second
# form returns an empty array.
#
# class Person < ActiveRecord::Base
@@ -317,7 +317,7 @@ class CollectionProxy < Relation
##
# :method: empty?
- # Returns true if the collection is empty.
+ # Returns +true+ if the collection is empty.
#
# class Person < ActiveRecord::Base
# has_many :pets
@@ -333,7 +333,7 @@ class CollectionProxy < Relation
##
# :method: any?
- # Returns true if the collection is not empty.
+ # Returns +true+ if the collection is not empty.
#
# class Person < ActiveRecord::Base
# has_many :pets
@@ -366,7 +366,7 @@ class CollectionProxy < Relation
##
# :method: many?
# Returns true if the collection has more than one record.
- # Equivalent to +collection.size > 1+.
+ # Equivalent to <tt>collection.size > 1</tt>.
#
# class Person < ActiveRecord::Base
# has_many :pets
@@ -402,7 +402,7 @@ class CollectionProxy < Relation
##
# :method: include?
- # Returns true if the given object is present in the collection.
+ # Returns +true+ if the given object is present in the collection.
#
# class Person < ActiveRecord::Base
# has_many :pets
@@ -499,7 +499,7 @@ def <<(*records)
#
# Pet.find(1) # => #<Pet id: 1, name: "Snoop", group: "dogs", person_id: nil>
#
- # If they are associated with +dependent: :destroy+ option, it deletes
+ # If they are associated with <tt>dependent: :destroy</tt> option, it deletes
# them directly from the database.
#
# class Person < ActiveRecord::Base
@@ -517,7 +517,7 @@ def clear
end
# Reloads the collection from the database. Returns +self+.
- # Equivalent to +collection(true)+.
+ # Equivalent to <tt>collection(true)</tt>.
#
# class Person < ActiveRecord::Base
# has_many :pets
Please sign in to comment.
Something went wrong with that request. Please try again.