Module: PublifyGuid

Included in:
Article, Feedback, Note
Defined in:
lib/publify_guid.rb

Instance Method Summary collapse

Instance Method Details

#create_guidObject



6
7
8
9
10
# File 'lib/publify_guid.rb', line 6

def create_guid
  return true if guid.present?

  self.guid = UUIDTools::UUID.random_create.to_s
end