Sha256: 564ae0c444ea256dae863b5ae8055619e8e055706088e20af92c5e5e4d416c73

Contents?: true

Size: 173 Bytes

Versions: 30

Compression:

Stored size: 173 Bytes

Contents

require 'md5'

module TypoGuid
  def create_guid
    self.guid rescue return true
    return true unless self.guid.blank?

    self.guid = UUID.random_create.to_s
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
typo-5.5 lib/typo_guid.rb
typo-5.4.4 lib/typo_guid.rb
typo-5.4.3 lib/typo_guid.rb
typo-5.4.2 lib/typo_guid.rb
typo-5.4.1 lib/typo_guid.rb
typo-5.4 lib/typo_guid.rb
typo-3.99.0 lib/typo_guid.rb
typo-3.99.3 lib/typo_guid.rb
typo-3.99.1 lib/typo_guid.rb
typo-3.99.2 lib/typo_guid.rb
typo-4.0.0 lib/typo_guid.rb
typo-4.0.2 lib/typo_guid.rb
typo-4.0.1 lib/typo_guid.rb
typo-3.99.4 lib/typo_guid.rb
typo-4.1.1 lib/typo_guid.rb
typo-4.0.3 lib/typo_guid.rb
typo-5.0.2 lib/typo_guid.rb
typo-4.1 lib/typo_guid.rb
typo-5.0.1 lib/typo_guid.rb
typo-5.0.3.98.1 lib/typo_guid.rb