مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-20 22:59:48 +00:00
initial commit from appmail
هذا الالتزام موجود في:
11
app/models/concerns/has_uuid.rb
Normal file
11
app/models/concerns/has_uuid.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
المرجع في مشكلة جديدة
حظر مستخدم