Sha256: 77e987661f4169144668a899c38a256fd6e93725be01ac74b3ca3e897a788dea

Contents?: true

Size: 226 Bytes

Versions: 1

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

class Hws::Stores::Models::Base < ActiveRecord::Base # :nodoc:
  self.abstract_class = true

  before_create :set_uuid

  def set_uuid
    self.id = ::LSUUID.generate if self.id.blank?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hws-stores-0.1.1 lib/hws-stores/models/base.rb