Employer table broken up and new idcard module setup

This commit is contained in:
Jason Jordan
2026-03-06 10:56:20 -05:00
parent 8ecabf60ff
commit 6a068243f4
31 changed files with 628 additions and 571 deletions
+8 -6
View File
@@ -1,11 +1,13 @@
class IdCard::NetworkLogo < ApplicationRecord
before_save :round_aspect_ratio
module IdCard
class NetworkLogo < ApplicationRecord
before_save :round_aspect_ratio
private
private
def round_aspect_ratio
if self.aspect_ratio.present?
self.aspect_ratio = self.aspect_ratio.round(2)
def round_aspect_ratio
if self.aspect_ratio.present?
self.aspect_ratio = self.aspect_ratio.round(2)
end
end
end
end