Flowdock
method

build

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: SingularAssociation
build(attributes = {}, options = {}) 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/associations/singular_association.rb, line 28
      def build(attributes = {}, options = {})
        record = build_record(attributes, options)
        yield(record) if block_given?
        set_new_record(record)
        record
      end
Register or log in to add new notes.