Sha256: f48c3e3caac7c2c5e26a1c70abfc8c43b23efb8fff1702a1041eb0ca0379251d
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
class <%= @model.classify %> include Mongoid::Document authenticates_with_sorcery! field :username, type: String field :email, type: String field :crypted_password, type: String field :salt, type: String attr_accessible :username, :email, :password, :password_confirmation validates_length_of :password, :minimum => 5, :message => "password must be at least 5 characters long", :if => :password validates_confirmation_of :password, :message => "should match confirmation", :if => :password validates_uniqueness_of :email, :username end
Version data entries
3 entries across 3 versions & 1 rubygems