ActiveRecord::AssociationRelation Ruby on Rails 5.1.2 Class ActiveRecord::AssociationRelation < Relation activerecord/lib/active_record/association_relation.rb Methods # == B build C create, create! N new, new P proxy_association Class Public methods new(klass, table, predicate_builder, association) Link Source: show | on GitHub # 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) Link Source: show | on GitHub # File activerecord/lib/active_record/association_relation.rb, line 12 def ==(other) other == records end build(*args, &block) Link Also aliased as: new Source: show | on GitHub # File activerecord/lib/active_record/association_relation.rb, line 16 def build(*args, &block) scoping { @association.build(*args, &block) } end create(*args, &block) Link Source: show | on GitHub # File activerecord/lib/active_record/association_relation.rb, line 21 def create(*args, &block) scoping { @association.create(*args, &block) } end create!(*args, &block) Link Source: show | on GitHub # File activerecord/lib/active_record/association_relation.rb, line 25 def create!(*args, &block) scoping { @association.create!(*args, &block) } end new(*args, &block) Link Alias for: build proxy_association() Link Source: show | on GitHub # File activerecord/lib/active_record/association_relation.rb, line 8 def proxy_association @association end