Skip to content

Commit

Permalink
Merge pull request ffaker#37 from finarfin/master
Browse files Browse the repository at this point in the history
Fix: Faker::Product.model creates models without prefix (i.e: -3213, -4522)
  • Loading branch information
Emmanuel Oga committed Mar 25, 2012
2 parents a2bff9d + bae07ce commit 50cdb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffaker/product.rb
Expand Up @@ -30,7 +30,7 @@ def letters(n)
def model
case rand(2)
when 0 then "#{LETTERS.rand.upcase}#{rand(90)}" # N90
when 1 then "#{letters(0..rand(2))}-#{rand(9900)}" # N-9400
when 1 then "#{letters(1..rand(1..2))}-#{rand(9900)}" # N-9400
end
end

Expand Down

0 comments on commit 50cdb7b

Please sign in to comment.