Sha256: 1d95fa64bf18fa1491fba7ab24e4c727ad5040c5f5cadcaa30aa594aa85c9124

Contents?: true

Size: 224 Bytes

Versions: 1

Compression:

Stored size: 224 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.0 lib/hws-stores/models/base.rb