Sha256: 8eae510645cac48aa516c99ffe2b7b71b42e80b90d98ce8cf5ffbe4ce9e48bf2
Contents?: true
Size: 722 Bytes
Versions: 10
Compression:
Stored size: 722 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 :mccity, length: { minimum: 3 } validates :mcprovince, presence: true, length: { minimum: 2 } validates :mccountry, presence: true, length: { minimum: 2 } validates :mcpostalcode, presence: true, length: { minimum: 3 } validates :mctype, presence: true, length: { minimum: 2 } end end
Version data entries
10 entries across 10 versions & 1 rubygems