Sha256: 72b9954b786ccecbe3f5acfb9cd7469b2a71794e7c5e2bd1a12f1e6ee8bac9c3
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
module Phcmembers class Directory::Listing < ActiveRecord::Base # Add Paper Trail has_paper_trail # Model Relationship belongs_to :category, class_name: 'Directory::Category' belongs_to :business, class_name: 'Members::Business' # Validation for Form Fields validates :business_id, presence: true # Validation for Form Fields validates :category_id, presence: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcmembers-3.0.1 | app/models/phcmembers/directory/listing.rb |
phcmembers-3.0.0 | app/models/phcmembers/directory/listing.rb |