Sha256: b98b39ba780b3a6cd64320a043e2fc9f5f556d9c6bb68b7bc30db1d6bd7ec6c6
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
module FactoryGirl class Proxy #:nodoc: class AttributesFor < Proxy #:nodoc: def initialize(klass) super(klass) @hash = {} @ignored_attributes = {} end def get(attribute) @ignored_attributes[attribute] || @hash[attribute] end def set(attribute, value) @hash[attribute] = value end def result(to_create) @hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factory_girl-2.2.0 | lib/factory_girl/proxy/attributes_for.rb |