Module: Sequel::Plugins::Uuid::InstanceMethods

Defined in:
lib/sequel/plugins/uuid.rb

Instance Method Summary collapse

Instance Method Details

#before_validationObject

Set the uuid when creating



45
46
47
48
# File 'lib/sequel/plugins/uuid.rb', line 45

def before_validation
  set_uuid if new?
  super
end