Sha256: 2698a87d61f7bfaf85db9f61360a7165396f6c504888c8906ae4db61ff14c1fd
Contents?: true
Size: 316 Bytes
Versions: 10
Compression:
Stored size: 316 Bytes
Contents
class Users::CreateForm < MVCLI::Form input :name, String, required: true input :password, String, required: true input :databases, [Map], decode: ->(s) {{name: s}} input :host, String validates(:host, "host must be a valid ip address or %") {|host| host == "%" or IPAddr.new(host) rescue nil } end
Version data entries
10 entries across 10 versions & 1 rubygems