Permalink
Browse files

Merge pull request #9998 from neerajdotname/association-doc

fixes for association doc
  • Loading branch information...
2 parents 1003f5b + f3cabb3 commit b22ec860abcad5c92c450b7fb03b6e9928d50807 @steveklabnik steveklabnik committed Mar 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/association.rb
@@ -92,7 +92,7 @@ def scoped
# The scope for this association.
#
# Note that the association_scope is merged into the target_scope only when the
- # scoped method is called. This is because at that point the call may be surrounded
+ # scope method is called. This is because at that point the call may be surrounded
# by scope.scoping { ... } or with_scope { ... } etc, which affects the scope which
# actually gets built.
def association_scope
@@ -113,7 +113,7 @@ def set_inverse_instance(record)
end
end
- # This class of the target. belongs_to polymorphic overrides this to look at the
+ # Returns the class of the target. belongs_to polymorphic overrides this to look at the
# polymorphic_type field on the owner.
def klass
reflection.klass

0 comments on commit b22ec86

Please sign in to comment.