module Sequel::Plugins::Slugging::ClassMethods

Attributes

slugging_opts[R]

Public Instance Methods

pk_type() click to toggle source
# File lib/sequel/plugins/slugging.rb, line 53
def pk_type
  schema = db_schema[primary_key]

  if schema[:type] == :integer
    :integer
  elsif schema[:db_type] == 'uuid'.freeze
    :uuid
  else
    raise "The sequel-slugging plugin can't handle this pk type: #{pk_schema.inspect}"
  end
end