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

Version Path
phcmembers-2.2.0 app/models/phcmembers/members/contact.rb
phcmembers-2.1.3 app/models/phcmembers/members/contact.rb
phcmembers-2.1.2 app/models/phcmembers/members/contact.rb
phcmembers-2.1.1 app/models/phcmembers/members/contact.rb
phcmembers-2.1.0 app/models/phcmembers/members/contact.rb
phcmembers-2.0.0 app/models/phcmembers/members/contact.rb
phcmembers-1.9.9 app/models/phcmembers/members/contact.rb
phcmembers-1.9.5 app/models/phcmembers/members/contact.rb
phcmembers-1.9.0 app/models/phcmembers/members/contact.rb
phcmembers-1.8.1 app/models/phcmembers/members/contact.rb
phcmembers-1.8.0 app/models/phcmembers/members/contact.rb
phcmembers-1.7.8 app/models/phcmembers/members/contact.rb
phcmembers-1.7.6 app/models/phcmembers/members/contact.rb
phcmembers-1.7.5 app/models/phcmembers/members/contact.rb
phcmembers-1.7.0 app/models/phcmembers/members/contact.rb
phcmembers-1.6.0 app/models/phcmembers/members/contact.rb
phcmembers-1.5.0 app/models/phcmembers/members/contact.rb
phcmembers-1.0.2 app/models/phcmembers/members/contact.rb
phcmembers-1.0.1 app/models/phcmembers/members/contact.rb
phcmembers-1.0.0 app/models/phcmembers/members/contact.rb