Sha256: 587928c1be8aac33846ff514851dffd0e1d5dcd986de054570ce5bb9068e2d86
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
# coding: utf-8 module Engine2 class UserInfo < Sequel::Model(DUMMYDB) set_natural_key :name extend MemoryModel 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
engine2-1.0.2 | lib/engine2/models/UserInfo.rb |
engine2-1.0.1 | lib/engine2/models/UserInfo.rb |