Module: Ripple::Associations::Instantiators

Included in:
Many, One
Defined in:
lib/ripple/associations/instantiators.rb

Instance Method Summary collapse

Instance Method Details

#build(attrs = {}) ⇒ Object



7
8
9
# File 'lib/ripple/associations/instantiators.rb', line 7

def build(attrs={})
  instantiate_target(:new, attrs)
end

#create(attrs = {}) ⇒ Object



11
12
13
# File 'lib/ripple/associations/instantiators.rb', line 11

def create(attrs={})
  instantiate_target(:create, attrs)
end

#create!(attrs = {}) ⇒ Object



15
16
17
# File 'lib/ripple/associations/instantiators.rb', line 15

def create!(attrs={})
  instantiate_target(:create!, attrs)
end