# File lib/active_record/mass_assignment_security/associations.rb, line 135 def build(attributes = {}, options = {}) record = build_record(attributes, options) yield(record) if block_given? set_new_record(record) record end