Sha256: b14d973b9b563c81bef6b22b6062cf26611dbe7a3670167b499a11b33cdfc1e8
Contents?: true
Size: 609 Bytes
Versions: 22
Compression:
Stored size: 609 Bytes
Contents
module Phcmembers class Members::Contact < ActiveRecord::Base # Model Relationships belongs_to :main, class_name: 'Members::Main' # Validation for Form Fields validates :mccontactname, presence: true, length: { minimum: 3 } validates :mccompanyname, presence: true, length: { minimum: 2 } validates :mccity, presence: true, length: { minimum: 3 } validates :mcprovince, presence: true, length: { minimum: 2 } validates :mccountry, presence: true, length: { minimum: 2 } validates :mcpostalcode, presence: true, length: { minimum: 6 } end end
Version data entries
22 entries across 22 versions & 1 rubygems