Sha256: e8f7f6d2cf4d75596aa989d7f610e145d16be82a63cfb365c3febe7a0ddbb4bc
Contents?: true
Size: 442 Bytes
Versions: 5
Compression:
Stored size: 442 Bytes
Contents
require 'ripple/associations' module Ripple module Associations module Instantiators def build(attrs={}) instantiate_target(:new, attrs) end def create(attrs={}) instantiate_target(:create, attrs) end def create!(attrs={}) instantiate_target(:create!, attrs) end protected def instantiate_target raise NotImplementedError end end end end
Version data entries
5 entries across 5 versions & 4 rubygems