Sha256: 3f39fddbd651b729d0af27557df936bf8312ddbc528f83c7cf71a8010ddd0481
Contents?: true
Size: 701 Bytes
Versions: 7
Compression:
Stored size: 701 Bytes
Contents
module Phcmembers class Members::Contact < ActiveRecord::Base # Mtdevise Scope def self.scoped_to(account) where(:account_id => account.id) end # 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
7 entries across 7 versions & 1 rubygems