1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00
الملفات
postal/app/models/concerns/has_uuid.rb
2024-02-10 17:18:23 +00:00

16 أسطر
199 B
Ruby

# frozen_string_literal: true
module HasUUID
def self.included(base)
base.class_eval do
random_string :uuid, type: :uuid, unique: true
end
end
def to_param
uuid
end
end