Sha256: 2b6bfb59c4500ec5ca0ad2d357b50bc591fdcb46ffa1cb6bdf5c08a3b600f435
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true class Tramway::User::UserForm < ::Tramway::Core::ApplicationForm self.model_class = Tramway::User::User 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tramway-user-2.1.1 | app/forms/tramway/user/user_form.rb |
tramway-user-2.1.0.2 | app/forms/tramway/user/user_form.rb |
tramway-user-2.1.0.1 | app/forms/tramway/user/user_form.rb |