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

Version Path
loyal3-sentry-0.4.2 test/fixtures/user.rb
loyal3-sentry-0.4.3 test/fixtures/user.rb
loyal3-sentry-0.4.4 test/fixtures/user.rb
loyal3-sentry-0.5.0 test/fixtures/user.rb
loyal3-sentry-0.5.2 test/fixtures/user.rb
shipstar-sentry-0.5.2.1 test/fixtures/user.rb
stderr-sentry-0.5.4 test/fixtures/user.rb
sentry-0.5.3 test/fixtures/user.rb