Sha256: c07aad2812b7ba66515697998b18ba1d98a8a8c56406c90af5b6e858ed8c64fa
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
module Phcmemberspro class Directory::Category < ActiveRecord::Base # Account Scope def self.scoped_to(account) where(:account_id => account.id) end # Model Relationship has_many :catlists, class_name: 'Directory::Catlist' # Validation for Form Fields validates :catname, presence: true, uniqueness: true, length: { minimum: 3 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcmemberspro-1.8.0 | app/models/phcmemberspro/directory/category.rb |