models/user.rb in sinatra_omniauth-0.2.2 vs models/user.rb in sinatra_omniauth-1.0.0
- old
+ new
@@ -1,12 +1,10 @@
+require 'uuidtools'
+
class User
include DataMapper::Resource
- devise :registerable, # handles signing up users through a registration process, also edit/destroy account.
- :rememberable, # "Remember me" from a cookie
- :trackable # Tracks sign in count, timestamps and IP address
-
- property :id, Serial
+ 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