1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Adds title to activerecord/lib/active_record/associations/*

This commit is contained in:
Rizwan Reza 2010-06-16 22:28:20 +04:30
parent 6445441253
commit fde9504847
10 changed files with 12 additions and 0 deletions

View file

@ -3,6 +3,8 @@ require 'active_support/core_ext/array/wrap'
module ActiveRecord module ActiveRecord
module Associations module Associations
# = Active Record Association Collection
#
# AssociationCollection is an abstract class that provides common stuff to # AssociationCollection is an abstract class that provides common stuff to
# ease the implementation of association proxies that represent # ease the implementation of association proxies that represent
# collections. See the class hierarchy in AssociationProxy. # collections. See the class hierarchy in AssociationProxy.

View file

@ -2,6 +2,8 @@ require 'active_support/core_ext/array/wrap'
module ActiveRecord module ActiveRecord
module Associations module Associations
# = Active Record Associations
#
# This is the root class of all association proxies: # This is the root class of all association proxies:
# #
# AssociationProxy # AssociationProxy

View file

@ -1,4 +1,5 @@
module ActiveRecord module ActiveRecord
# = Active Record Belongs To Associations
module Associations module Associations
class BelongsToAssociation < AssociationProxy #:nodoc: class BelongsToAssociation < AssociationProxy #:nodoc:
def create(attributes = {}) def create(attributes = {})

View file

@ -1,4 +1,5 @@
module ActiveRecord module ActiveRecord
# = Active Record Belongs To Polymorphic Association
module Associations module Associations
class BelongsToPolymorphicAssociation < AssociationProxy #:nodoc: class BelongsToPolymorphicAssociation < AssociationProxy #:nodoc:
def replace(record) def replace(record)

View file

@ -1,4 +1,5 @@
module ActiveRecord module ActiveRecord
# = Active Record Has And Belongs To Many Association
module Associations module Associations
class HasAndBelongsToManyAssociation < AssociationCollection #:nodoc: class HasAndBelongsToManyAssociation < AssociationCollection #:nodoc:
def create(attributes = {}) def create(attributes = {})

View file

@ -1,4 +1,5 @@
module ActiveRecord module ActiveRecord
# = Active Record Has Many Association
module Associations module Associations
# This is the proxy that handles a has many association. # This is the proxy that handles a has many association.
# #

View file

@ -2,6 +2,7 @@ require "active_record/associations/through_association_scope"
require 'active_support/core_ext/object/blank' require 'active_support/core_ext/object/blank'
module ActiveRecord module ActiveRecord
# = Active Record Has Many Through Association
module Associations module Associations
class HasManyThroughAssociation < HasManyAssociation #:nodoc: class HasManyThroughAssociation < HasManyAssociation #:nodoc:
include ThroughAssociationScope include ThroughAssociationScope

View file

@ -1,4 +1,5 @@
module ActiveRecord module ActiveRecord
# = Active Record Belongs To Has One Association
module Associations module Associations
class HasOneAssociation < AssociationProxy #:nodoc: class HasOneAssociation < AssociationProxy #:nodoc:
def initialize(owner, reflection) def initialize(owner, reflection)

View file

@ -1,6 +1,7 @@
require "active_record/associations/through_association_scope" require "active_record/associations/through_association_scope"
module ActiveRecord module ActiveRecord
# = Active Record Has One Through Association
module Associations module Associations
class HasOneThroughAssociation < HasOneAssociation class HasOneThroughAssociation < HasOneAssociation
include ThroughAssociationScope include ThroughAssociationScope

View file

@ -1,4 +1,5 @@
module ActiveRecord module ActiveRecord
# = Active Record Through Association Scope
module Associations module Associations
module ThroughAssociationScope module ThroughAssociationScope