Sha256: dff53fbcb6734ab2292c5d0f4b7cd194ec7a857404bce07425da99eeecb7f3bf
Contents?: true
Size: 392 Bytes
Versions: 10
Compression:
Stored size: 392 Bytes
Contents
module Phcpresspro class Modules::Category < ApplicationRecord # Relationships has_many :connections, class_name: 'Phcpresspro::Modules::Connection', dependent: :destroy has_many :posts, class_name: 'Phcpresspro::Modules::Category', :through => :connections # Validation for Form Fields validates :catname, presence: true, length: { minimum: 3 } end end
Version data entries
10 entries across 10 versions & 1 rubygems