Sha256: d19537a71b34c2dceb9fc4a6877e9d48dce8cad7ddf2c53c4f940034b69cca90
Contents?: true
Size: 583 Bytes
Versions: 3
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true class Admin::Tramway::UserForm < ::Tramway::ApplicationForm self.model_class = Tramway::User properties :email, :password, :first_name, :last_name, :role, :phone # fix me unless model_class.columns_hash['project_id'].present? validates :email, email: true, uniqueness: true, on: :destroy end def initialize(object) super(object).tap do form_properties email: :string, password: :string, first_name: :string, last_name: :string, phone: :string, role: :default end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tramway-0.1.2 | app/forms/admin/tramway/user_form.rb |
tramway-0.1.1.1 | app/forms/admin/tramway/user_form.rb |
tramway-0.1.1 | app/forms/admin/tramway/user_form.rb |