module ArDocStore::EmbeddableModel::ClassMethods
Public Instance Methods
build(attrs=HashWithIndifferentAccess.new, parent = nil)
click to toggle source
# File lib/ar_doc_store/embeddable_model.rb, line 111 def build(attrs=HashWithIndifferentAccess.new, parent = nil) model = if attrs.is_a?(self.class) attrs else new(attrs) end model.parent = parent model end