lib/faker_maker/factory.rb in faker_maker-1.2.0 vs lib/faker_maker/factory.rb in faker_maker-1.2.1

- old
+ new

@@ -101,10 +101,10 @@ collection |= FakerMaker[parent].attributes( collection ) if parent? collection | @attributes end def find_attribute( name = '' ) - attributes.filter { |a| [a.name, a.translation, @naming_strategy&.name(name)].include? name }.first + attributes.filter { |a| [a.name, a.translation, @naming_strategy&.name(a.name)].include? name }.first end protected def populate_instance( instance, attr_override_values )