mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Adds title to activerecord/lib/active_record/associations/*
This commit is contained in:
@@ -3,6 +3,8 @@ require 'active_support/core_ext/array/wrap'
|
||||
|
||||
module ActiveRecord
|
||||
module Associations
|
||||
# = Active Record Association Collection
|
||||
#
|
||||
# AssociationCollection is an abstract class that provides common stuff to
|
||||
# ease the implementation of association proxies that represent
|
||||
# collections. See the class hierarchy in AssociationProxy.
|
||||
|
||||
@@ -2,6 +2,8 @@ require 'active_support/core_ext/array/wrap'
|
||||
|
||||
module ActiveRecord
|
||||
module Associations
|
||||
# = Active Record Associations
|
||||
#
|
||||
# This is the root class of all association proxies:
|
||||
#
|
||||
# AssociationProxy
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module ActiveRecord
|
||||
# = Active Record Belongs To Associations
|
||||
module Associations
|
||||
class BelongsToAssociation < AssociationProxy #:nodoc:
|
||||
def create(attributes = {})
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module ActiveRecord
|
||||
# = Active Record Belongs To Polymorphic Association
|
||||
module Associations
|
||||
class BelongsToPolymorphicAssociation < AssociationProxy #:nodoc:
|
||||
def replace(record)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module ActiveRecord
|
||||
# = Active Record Has And Belongs To Many Association
|
||||
module Associations
|
||||
class HasAndBelongsToManyAssociation < AssociationCollection #:nodoc:
|
||||
def create(attributes = {})
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module ActiveRecord
|
||||
# = Active Record Has Many Association
|
||||
module Associations
|
||||
# This is the proxy that handles a has many association.
|
||||
#
|
||||
|
||||
@@ -2,6 +2,7 @@ require "active_record/associations/through_association_scope"
|
||||
require 'active_support/core_ext/object/blank'
|
||||
|
||||
module ActiveRecord
|
||||
# = Active Record Has Many Through Association
|
||||
module Associations
|
||||
class HasManyThroughAssociation < HasManyAssociation #:nodoc:
|
||||
include ThroughAssociationScope
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module ActiveRecord
|
||||
# = Active Record Belongs To Has One Association
|
||||
module Associations
|
||||
class HasOneAssociation < AssociationProxy #:nodoc:
|
||||
def initialize(owner, reflection)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
require "active_record/associations/through_association_scope"
|
||||
|
||||
module ActiveRecord
|
||||
# = Active Record Has One Through Association
|
||||
module Associations
|
||||
class HasOneThroughAssociation < HasOneAssociation
|
||||
include ThroughAssociationScope
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
module ActiveRecord
|
||||
# = Active Record Through Association Scope
|
||||
module Associations
|
||||
module ThroughAssociationScope
|
||||
|
||||
|
||||
Reference in New Issue
Block a user