Sha256: 87231d24e105c7ddafb67c0ae67f88edb706d607a27dc6a35d43a866bf9b6eb7

Contents?: true

Size: 184 Bytes

Versions: 24

Compression:

Stored size: 184 Bytes

Contents

# frozen_string_literal: true

require "uuidtools"

module PublifyGuid
  def create_guid
    return true if guid.present?

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

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
publify_core-9.2.3 lib/publify_guid.rb
publify_core-9.2.2 lib/publify_guid.rb
publify_core-9.2.1 lib/publify_guid.rb
publify_core-9.2.0 lib/publify_guid.rb