Sha256: a7629c8d5c7cc39ab23b186b117131a352d0ceea9cfa0f6e9b64b833af73f638

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

class Users::CreateForm < MVCLI::Form
  input :name, String, required: true
  input :password, String, required: true
  input :databases, [Map], required: true, decode: ->(s) {{name: s}}
  input :host, String

  validates(:host, "must be a valid ip address or %") {|host|
    host == "%" or IPAddr.new(host) rescue nil
  }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rumm-0.1.0 app/forms/users/create_form.rb
rumm-0.0.24 app/forms/users/create_form.rb
rumm-0.0.23 app/forms/users/create_form.rb