Sha256: 283dc7a4736dc2b99926a706e548a4c74f368e126ab0efede7684175bb50f11e
Contents?: true
Size: 807 Bytes
Versions: 7
Compression:
Stored size: 807 Bytes
Contents
module Phcmemberspro class Member::Address < ApplicationRecord # Add Paper Trail has_paper_trail # Model Relationships belongs_to :profile, class_name: 'Phcmemberspro::Member::Profile' # Validation for Form Fields validates :mcaddressl1, presence: true, length: { minimum: 2 } validates :mcaddressl2, presence: true, length: { minimum: 2 } validates :mccity, length: { minimum: 3 } validates :mcprovince, presence: true, length: { minimum: 3 } validates :mccountry, presence: true, length: { minimum: 3 } validates :mcpostalcode, presence: true, length: { minimum: 3 } validates :mctype, presence: true, length: { minimum: 2 } end end
Version data entries
7 entries across 7 versions & 1 rubygems