osaka menu rake

This commit is contained in:
Yan
2017-07-11 19:21:17 +06:30
parent 39aca095fb
commit b47e0d0548
4 changed files with 63 additions and 65 deletions

View File

@@ -61,8 +61,7 @@ class SeedGenerator < ApplicationRecord
end
padding_len = 5 - prefix.length
next_code = prefix +"-"+ seed.current.to_s.to_s.rjust((4-prefix.length)+1,'0')
next_code = prefix + seed.current.to_s.to_s.rjust((4-prefix.length)+1,'0')
return next_code
end
end