Sha256: d1f85543b1896b24edd25f2d1149e300a77992061fb63f29905c32775bed3b59
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
class User attr_accessor :username include Motion::Persistable attr_persisted :email, '' attr_persisted :age, 16 attr_persisted :location attr_persisted :last_sign_in, nil do |value| App::Persistence['last_sign_in'] = value end class << self include Motion::Persistable attr_persisted :last_signed_in_user end def initialize(username) self.username = username end def name username end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-persistable-0.0.3 | app/user.rb |
motion-persistable-0.0.2 | app/user.rb |