Sha256: c7c6eab7cdca646275f066e7745075919f1282fba819995a64cdbc2ba8ff1435
Contents?: true
Size: 507 Bytes
Versions: 10
Compression:
Stored size: 507 Bytes
Contents
module Phcmemberspro class Directory::Catlist < ActiveRecord::Base # Mtdevise Scope def self.scoped_to(account) where(:account_id => account.id) end # Model Relationship belongs_to :category, class_name: 'Directory::Category' belongs_to :listing, class_name: 'Members::Listing' # Validation for Form Fields (More of a Self-Check) validates :listing_id, presence: true # Validation for Form Fields (More of a Self-Check) validates :category_id, presence: true end end
Version data entries
10 entries across 10 versions & 1 rubygems