lib/faker_maker/factory.rb in faker_maker-1.1.0 vs lib/faker_maker/factory.rb in faker_maker-1.1.1
- old
+ new
@@ -82,10 +82,10 @@
"setting '#{unknown_attrs.join( ', ' )}', no such attribute(s)"
raise FakerMaker::NoSuchAttributeError, issue unless unknown_attrs.empty?
end
def attribute_hash_overridden_value?( attr, attr_override_values )
- !attr_override_values[attr.name].nil?
+ attr_override_values.keys.include?( attr.name )
end
def value_for_attribute( instance, attr, attr_override_values )
if attribute_hash_overridden_value?( attr, attr_override_values )
attr_override_values[attr.name]