Sha256: 486abc64f95c09de6476fbfec2b11427a38ba2acdac1d6753036eb3218d0a4f7
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module Phcpress class Modules::Category < ApplicationRecord # Relationships has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy has_many :posts, class_name: 'Phcpress::Modules::Category', :through => :connections # Validation for Form Fields validates :catname, presence: true, length: { minimum: 3 } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcpress-8.0.0 | app/models/phcpress/modules/category.rb |
phcpress-8.0.0b | app/models/phcpress/modules/category.rb |