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

Version Path
rumm-0.0.13 app/forms/users/create_form.rb
rumm-0.0.12 app/forms/users/create_form.rb
rumm-0.0.11 app/forms/users/create_form.rb
rumm-0.0.10 app/forms/users/create_form.rb
rumm-0.0.9 app/forms/users/create_form.rb
rumm-0.0.8 app/forms/users/create_form.rb
rumm-0.0.7 app/forms/users/create_form.rb
rumm-0.0.6 app/forms/users/create_form.rb
rumm-0.0.5 app/forms/users/create_form.rb
rumm-0.0.4 app/forms/users/create_form.rb