ActiveRecord::AssociationRelation
Methods
#
B
C
N
P
Class Public methods
new(klass, table, predicate_builder, association)
# File activerecord/lib/active_record/association_relation.rb, line 3
def initialize(klass, table, predicate_builder, association)
  super(klass, table, predicate_builder)
  @association = association
end
Instance Public methods
==(other)
# File activerecord/lib/active_record/association_relation.rb, line 12
def ==(other)
  other == records
end
build(*args, &block)
Also aliased as: new
# File activerecord/lib/active_record/association_relation.rb, line 16
def build(*args, &block)
  scoping { @association.build(*args, &block) }
end
create(*args, &block)
# File activerecord/lib/active_record/association_relation.rb, line 21
def create(*args, &block)
  scoping { @association.create(*args, &block) }
end
create!(*args, &block)
# File activerecord/lib/active_record/association_relation.rb, line 25
def create!(*args, &block)
  scoping { @association.create!(*args, &block) }
end
new(*args, &block)
Alias for: build
proxy_association()
# File activerecord/lib/active_record/association_relation.rb, line 8
def proxy_association
  @association
end