class ActiveRecord::UuidBase

Public Class Methods

inherited_with_uuid(kls) click to toggle source
# File lib/active_record_uuid/uuid_base.rb, line 5
def inherited_with_uuid(kls)
  inherited_without_uuid kls
  warn "[DEPRECATION] `UuidBaseHelper` and `ActiveRecord::UuidBase` are deprecated.  Please inherit from `ActiveRecord::Base` and use `has_uuid` instead."
  kls.uuid_config do
    primary_key true
    association true
    hook        :before_create
  end
end