Sha256: ba9575dc32161dd4dbd457dcf7c96325ae857ba7e1ba77c190f8c2403818d405
Contents?: true
Size: 537 Bytes
Versions: 5
Compression:
Stored size: 537 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true module Engine2 class UserInfo < Sequel::Model(DUMMYDB) set_natural_key :name extend MemoryModel type_info do string_field :name, 100 required :name, LOCS[:user_required] string_field :password, 100 required :password, LOCS[:password_required] password :password end def to_hash hash = @values.dup hash.delete(:password) hash end end end
Version data entries
5 entries across 5 versions & 1 rubygems