Sha256: 7633d6ed8158e161478111ab48cc914710675d68ffe8c5cf13c7bf3efb9a7b0c

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

class User < ActiveRecord::Base
  #define_read_methods
  generates_crypted :creditcard, :mode => :asymmetric
  
  #def self.validates_password
  #  validates_presence_of :password
  #  validates_presence_of :password, :on => :create
  #  validates_length_of :password, :in => 4..40
  #end
end

#class ShaUser < User
#  validates_password
#  validates_confirmation_of :password
#  generates_crypted :password # sha is used by default
#end
#
#class DangerousUser < User # no password confirmation
## validates_password
#  generates_crypted :password
#end
#
#class SymmetricUser < User
#  validates_password
#  generates_crypted :password, :mode => :symmetric
#end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pivotal-sentry-0.4.0 test/fixtures/user.rb