Sha256: 781d6b6a86c35e5d062c5e183eef5d4f9aeb0f2442c2a0770d40efd63944b3b6

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

require 'uuidtools'

class User
  include DataMapper::Resource

  property :id, UUID, :key => true, :required => true, :default => proc { UUIDTools::UUID.random_create }

  # Each user may log in using different methods:
  has n, :authentications
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sinatra_omniauth-1.3.0 models/user.rb
sinatra_omniauth-1.2.0 models/user.rb
sinatra_omniauth-1.1.0 models/user.rb
sinatra_omniauth-1.0.1 models/user.rb
sinatra_omniauth-1.0.0 models/user.rb