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

Version Path
phcmemberspro-14.0.3 app/models/phcmemberspro/member/address.rb
phcmemberspro-14.0.2 app/models/phcmemberspro/member/address.rb
phcmemberspro-14.0.1 app/models/phcmemberspro/member/address.rb
phcmemberspro-14.0.0 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.6.6 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.6.5 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.6.4 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.6.3 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.6.2 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.6.1 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.6.0 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.5.1 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.5.0 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.4.2 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.4.1 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.4.0 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.2.1 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.2.0 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.1.1 app/models/phcmemberspro/member/address.rb
phcmemberspro-13.1.0 app/models/phcmemberspro/member/address.rb