Sha256: 9234d04ae6fc765fc2838cd03e4a79b3fdddd5f634939100f19af95ef976f3ea

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

class <%= @model.classify %> < ActiveRecord::Base
  authenticates_with_sorcery!
  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 :username, :email
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bootup-0.0.4.1 lib/generators/bootup/templates/authentication/models/user_others.rb.erb
bootup-0.0.4 lib/generators/bootup/templates/authentication/models/user_others.rb.erb
bootup-0.0.3 lib/generators/bootup/templates/authentication/models/user_others.rb.erb