seed_generators prefix

This commit is contained in:
Zoey
2019-06-21 11:50:48 +06:30
parent 7e987587c9
commit 9d95dc0f8e
17 changed files with 20 additions and 96 deletions

View File

@@ -34,11 +34,6 @@ class SaleTax < ApplicationRecord
private
def generate_custom_id
prefix = "STI"
if ENV["SERVER_MODE"] == 'cloud'
prefix = "CSTI"
end
self.sale_tax_id = SeedGenerator.generate_id(self.class.name, prefix)
self.sale_tax_id = SeedGenerator.generate_id(self.class.name, "STI")
end
end