lib/faker_maker/factory.rb in faker_maker-1.1.4 vs lib/faker_maker/factory.rb in faker_maker-1.1.5
- old
+ new
@@ -78,10 +78,10 @@
collection |= FakerMaker[parent].attributes( collection ) if parent?
collection | @attributes
end
def find_attribute( name = '' )
- attributes.filter { |a| a.name == name }.first
+ attributes.filter { |a| [a.name, a.translation].include? name }.first
end
protected
def populate_instance( instance, attr_override_values )