lib/forgery/forgery/name.rb in forgery-0.4.0 vs lib/forgery/forgery/name.rb in forgery-0.4.1
- old
+ new
@@ -3,10 +3,10 @@
def self.last_name
dictionaries[:last_names].random.unextend
end
def self.first_name
- [dictionaries[:male_first_names], dictionaries[:female_first_names]].random.random.unextend
+ Forgery::Extend(dictionaries[:male_first_names] + dictionaries[:female_first_names]).random.unextend
end
def self.full_name
"#{self.first_name} #{self.last_name}"
end