Module: ActiveID::Model::ClassMethods

Defined in:
lib/active_id/model.rb

Instance Method Summary collapse

Instance Method Details

#natural_key(*attributes) ⇒ Object



18
19
20
# File 'lib/active_id/model.rb', line 18

def natural_key(*attributes)
  self._natural_key = attributes
end

#uuid_generator(generator_name) ⇒ Object



27
28
29
# File 'lib/active_id/model.rb', line 27

def uuid_generator(generator_name)
  self._uuid_generator = generator_name
end

#uuid_namespace(namespace) ⇒ Object



22
23
24
25
# File 'lib/active_id/model.rb', line 22

def uuid_namespace(namespace)
  namespace = Utils.cast_to_uuid(namespace)
  self._uuid_namespace = namespace
end