lib/faker_maker/factory.rb in faker_maker-1.1.5 vs lib/faker_maker/factory.rb in faker_maker-1.1.6

- old
+ new

@@ -110,10 +110,10 @@ def value_for_attribute( instance, attr, attr_override_values ) if attribute_hash_overridden_value?( attr, attr_override_values ) attr_override_values[attr.name] elsif attr.array? - [].tap { |a| attr.cardinality.times { a << attr.block.call } } + [].tap { |a| attr.cardinality.times { a << instance.instance_eval(&attr.block) } } else instance.instance_eval(&attr.block) end end