Sha256: d9d2f0ca5a1f5fe23dee7a96cae28b940c5ef28425bf37c74eb1721eddf7eb51
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
class User < ActiveRecord::Base #define_read_methods asymmetrically_encrypts :creditcard #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
8 entries across 8 versions & 4 rubygems