Sha256: 1a7a61516ef49e1b9f274aca708f0b84192fb1a15433a5ea6aaa4df2a2ef0a62
Contents?: true
Size: 710 Bytes
Versions: 31
Compression:
Stored size: 710 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
31 entries across 31 versions & 1 rubygems