method

build

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: AssociationRelation
build(attributes = nil, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/association_relation.rb, line 30
    def build(attributes = nil, &block)
      if attributes.is_a?(Array)
        attributes.collect { |attr| build(attr, &block) }
      else
        block = current_scope_restoring_block(&block)
        scoping { _new(attributes, &block) }
      end
    end
Register or log in to add new notes.