lib/vidibus/user/mongoid.rb in vidibus-user-0.0.10 vs lib/vidibus/user/mongoid.rb in vidibus-user-1.0.0
- old
+ new
@@ -1,11 +1,13 @@
+require 'vidibus-uuid'
+
module Vidibus
module User
module Mongoid
extend ActiveSupport::Concern
included do
- field :uuid
- field :email
+ field :uuid, type: String
+ field :email, type: String
validates :uuid, :uuid => true
end
end
end
end