Sha256: f772d65562d131a328857cbadcdc8a0f9ab00878920ac45084b468aff61c3f63
Contents?: true
Size: 629 Bytes
Versions: 12
Compression:
Stored size: 629 Bytes
Contents
module FactoryGirl class Attribute class Implicit < Attribute def initialize(name) super(name) end def add_to(proxy) implementation.add_to(proxy) end def association? implementation.association? end def factory name end private def implementation @implementation ||= resolve_name end def resolve_name if FactoryGirl.factories.registered?(name) Attribute::Association.new(name, name, {}) else Attribute::Sequence.new(name, name) end end end end end
Version data entries
12 entries across 12 versions & 2 rubygems