Sha256: 9946777420bd14d591992fba3e020dec2685ff1a43d458fc921203ed8a460488

Contents?: true

Size: 254 Bytes

Versions: 1

Compression:

Stored size: 254 Bytes

Contents

# frozen_string_literal: true

module Hws::Transactions::Models
  class 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hws-transactions-0.1.0 lib/hws-transactions/models/base.rb