2026-03-06 10:56:20 -05:00
|
|
|
module IdCard
|
|
|
|
|
class NetworkLogo < ApplicationRecord
|
|
|
|
|
before_save :round_aspect_ratio
|
2026-03-03 22:53:21 -05:00
|
|
|
|
2026-03-06 10:56:20 -05:00
|
|
|
private
|
2026-03-03 22:53:21 -05:00
|
|
|
|
2026-03-06 10:56:20 -05:00
|
|
|
def round_aspect_ratio
|
|
|
|
|
if self.aspect_ratio.present?
|
|
|
|
|
self.aspect_ratio = self.aspect_ratio.round(2)
|
|
|
|
|
end
|
2026-03-03 22:53:21 -05:00
|
|
|
end
|
|
|
|
|
end
|
2025-12-10 13:22:33 -05:00
|
|
|
end
|