initial commit from appmail
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user