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-10.0.2 lib/publify_guid.rb
HornsAndHooves-publify_core-10.5.0 lib/publify_guid.rb
HornsAndHooves-publify_core-10.4.0 lib/publify_guid.rb
HornsAndHooves-publify_core-10.3.0 lib/publify_guid.rb
HornsAndHooves-publify_core-10.2.0 lib/publify_guid.rb
publify_core-10.0.1 lib/publify_guid.rb
publify_core-10.0.0 lib/publify_guid.rb
publify_core-9.2.10 lib/publify_guid.rb
HornsAndHooves-publify_core-10.1.1 lib/publify_guid.rb
HornsAndHooves-publify_core-10.1.0 lib/publify_guid.rb
HornsAndHooves-publify_core-10.0.3 lib/publify_guid.rb
HornsAndHooves-publify_core-10.0.2 lib/publify_guid.rb
HornsAndHooves-publify_core-10.0.1 lib/publify_guid.rb
HornsAndHooves-publify_core-10.0.0 lib/publify_guid.rb
publify_core-9.2.9 lib/publify_guid.rb
publify_core-9.2.8 lib/publify_guid.rb
publify_core-9.2.7 lib/publify_guid.rb
publify_core-9.2.6 lib/publify_guid.rb
publify_core-9.2.5 lib/publify_guid.rb
publify_core-9.2.4 lib/publify_guid.rb