module NeoGruby::Sequel::Plugins::UuidPk::InstanceMethods
Public Instance Methods
before_validation()
click to toggle source
# File lib/neo_gruby/sequel/plugins/uuid_pk.rb, line 43 def before_validation field = :id meth = :"#{field}=" if respond_to?(field) && respond_to?(meth) && get_column_value(field).nil? set_column_value(meth, UUIDTools::UUID.timestamp_create.raw) end end
id()
click to toggle source
Calls superclass method
# File lib/neo_gruby/sequel/plugins/uuid_pk.rb, line 51 def id UuidPk.parse_id(super) end