Sha256: ac8af49760a52dbfa7ebf555b82aaa1dc384098a4460fc9a9bfc8ca7886b8883

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

class Tramway::User::UserForm < ::Tramway::Core::ApplicationForm
  properties :email, :password, :first_name, :last_name, :role

  validates :email, email: true

  def initialize(object)
    super(object).tap do
      form_properties email: :string,
                      password: :string,
                      first_name: :string,
                      last_name: :string,
                      role: :default
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-user-2.1 app/forms/tramway/user/user_form.rb
tramway-user-2.0.1 app/forms/tramway/user/user_form.rb