Skip to content
Browse files

it's to its

  • Loading branch information...
1 parent 8754a12 commit befdc55a958aa45f163b1c1355eb11e2262d2453 @dannguyen committed Oct 11, 2012
View
10 CHANGELOG.md
@@ -573,7 +573,7 @@ For instructions on upgrading to newer versions, visit
Enumerable, or included gems that inject methods into these
or Mongoid internals.
-* \#1753/#1649 A setter and getter for has_many relations to set it's
+* \#1753/#1649 A setter and getter for has_many relations to set its
children is now provided. (Piotr Jakubowski)
class Album
@@ -799,7 +799,7 @@ For instructions on upgrading to newer versions, visit
band.with(database: "secondary).save!
Band.with(collection: "artists").where(name: "Depeche Mode")
-* \#1291 You can now configure on a per-model basis where it's documents are
+* \#1291 You can now configure on a per-model basis where its documents are
stored with the new and improved `store_in` macro.
class Band
@@ -916,7 +916,7 @@ For instructions on upgrading to newer versions, visit
index({ name: 1 }, { unique: true, background: true })
end
- Geospacial indexing needs "2d" as it's direction.
+ Geospacial indexing needs "2d" as its direction.
class Venue
include Mongoid::Document
@@ -1083,11 +1083,11 @@ For instructions on upgrading to newer versions, visit
If the id is set, but the document for it has not been persisted, accessing
the relation will return empty results.
- If the id is set and it's document is persisted, accessing the relation
+ If the id is set and its document is persisted, accessing the relation
will return the document.
If the id is set, but the base document is not saved afterwards, then
- reloading will return the document to it's original state.
+ reloading will return the document to its original state.
* \#1093 Field serialization strategies have changed on Array, Hash, Integer
and Boolean to be more consistent and match AR where appropriate.
View
2 lib/mongoid/contextual/eager.rb
@@ -58,7 +58,7 @@ def eager_loadable?
!eager_loaded && !criteria.inclusions.empty?
end
- # If the provided document exists, eager load it's dependencies or return
+ # If the provided document exists, eager load its dependencies or return
# nil.
#
# @example Eager load if the document is not nil.
View
2 lib/mongoid/criterion/scoping.rb
@@ -39,7 +39,7 @@ def remove_scoping(other)
self
end
- # Forces the criteria to be scoped, unless it's inside an unscoped block.
+ # Forces the criteria to be scoped, unless its inside an unscoped block.
#
# @example Force the criteria to be scoped.
# criteria.scoped(skip: 10)
View
2 lib/mongoid/dirty.rb
@@ -228,7 +228,7 @@ def attribute_will_change!(attr)
end
end
- # Set the attribute back to it's old value.
+ # Set the attribute back to its old value.
#
# @example Reset the attribute.
# model.reset_attribute!("name")
View
2 lib/mongoid/document.rb
@@ -108,7 +108,7 @@ def hash
identity.hash
end
- # A Document's is identified absolutely by it's class and database id:
+ # A Document's is identified absolutely by its class and database id:
#
# Person.first.identity #=> [Person, Moped::BSON::ObjectId('4f775130a04745933a000003')]
#
View
2 lib/mongoid/errors/mixed_relations.rb
@@ -3,7 +3,7 @@ module Mongoid
module Errors
# This error is raised when trying to reference an embedded document from
- # a document in another collection that is not it's parent.
+ # a document in another collection that is not its parent.
#
# @example An illegal reference to an embedded document.
# class Post
View
2 lib/mongoid/extensions/big_decimal.rb
@@ -30,7 +30,7 @@ def mongoize
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# Object.demongoize(object)
View
2 lib/mongoid/extensions/date.rb
@@ -30,7 +30,7 @@ def mongoize
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# Date.demongoize(object)
View
2 lib/mongoid/extensions/date_time.rb
@@ -36,7 +36,7 @@ def mongoize
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# DateTime.demongoize(object)
View
2 lib/mongoid/extensions/object.rb
@@ -237,7 +237,7 @@ def __mongoize_fk__(constraint, object)
constraint.convert(object)
end
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# Object.demongoize(object)
View
2 lib/mongoid/extensions/range.rb
@@ -42,7 +42,7 @@ def resizable?
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# Range.demongoize({ "min" => 1, "max" => 5 })
View
2 lib/mongoid/extensions/set.rb
@@ -18,7 +18,7 @@ def mongoize
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# Set.demongoize({ "min" => 1, "max" => 5 })
View
2 lib/mongoid/extensions/string.rb
@@ -150,7 +150,7 @@ def convert_to_object_id
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# String.demongoize(object)
View
2 lib/mongoid/extensions/symbol.rb
@@ -17,7 +17,7 @@ def mongoid_id?
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# Symbol.demongoize(object)
View
2 lib/mongoid/extensions/time.rb
@@ -31,7 +31,7 @@ def configured
Mongoid.use_activesupport_time_zone? ? (::Time.zone || ::Time) : ::Time
end
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# Time.demongoize(object)
View
2 lib/mongoid/extensions/time_with_zone.rb
@@ -18,7 +18,7 @@ def mongoize
module ClassMethods
- # Convert the object from it's mongo friendly ruby type to this type.
+ # Convert the object from its mongo friendly ruby type to this type.
#
# @example Demongoize the object.
# TimeWithZone.demongoize(object)
View
2 lib/mongoid/fields/standard.rb
@@ -136,7 +136,7 @@ def object_id_field?
@object_id_field ||= (type == Moped::BSON::ObjectId)
end
- # Does the field pre-process it's default value?
+ # Does the field pre-process its default value?
#
# @example Does the field pre-process the default?
# field.pre_processed?
View
2 lib/mongoid/identity_map.rb
@@ -76,7 +76,7 @@ def remove(document)
end
end
- # Puts a document in the identity map, accessed by it's id.
+ # Puts a document in the identity map, accessed by its id.
#
# @example Put the document in the map.
# identity_map.set(document)
View
2 lib/mongoid/persistence.rb
@@ -99,7 +99,7 @@ def save!(options = {})
return true
end
- # Touch the document, in effect updating it's updated_at timestamp and
+ # Touch the document, in effect updating its updated_at timestamp and
# optionally the provided field to the current time. If any belongs_to
# relations exist with a touch option, they will be updated as well.
#
View
2 lib/mongoid/relations/targets/enumerable.rb
@@ -309,7 +309,7 @@ def _loaded?
!!@executed
end
- # Reset the enumerable back to it's persisted state.
+ # Reset the enumerable back to its persisted state.
#
# @example Reset the enumerable.
# enumerable.reset
View
2 lib/mongoid/validations/queryable.rb
@@ -4,7 +4,7 @@ module Validations
module Queryable
# Wrap the validation inside the an execution block that alert's the
- # session not to clear it's persistence options.
+ # session not to clear its persistence options.
#
# @example Execute the validation with a query.
# with_query(document) do

0 comments on commit befdc55

Please sign in to comment.
Something went wrong with that request. Please try again.