Sha256: 7be9d2bf9ef931645172906b02d8ed5fb99be8bb9548be50e49fa59e8c281dd7
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
# coding: utf-8 module Engine2 class UserInfo < Sequel::Model(DUMMYDB) extend MemoryModel set_natural_key :name type_info do string_field :name, 10 required :name, LOCS[:user_required] string_field :password, 20 required :password, LOCS[:password_required] password :password end def after_validation @values[:password] = nil end def to_hash {name: @values[:name]} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engine2-1.0.0 | lib/engine2/models/UserInfo.rb |