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

Version Path
phcpresspro-10.0.0 app/models/phcpresspro/modules/category.rb
phcpresspro-9.1.3 app/models/phcpresspro/modules/category.rb
phcpresspro-9.1.2 app/models/phcpresspro/modules/category.rb
phcpresspro-9.1.1 app/models/phcpresspro/modules/category.rb
phcpresspro-9.1.0 app/models/phcpresspro/modules/category.rb
phcpresspro-9.0.0 app/models/phcpresspro/modules/category.rb
phcpresspro-8.0.6 app/models/phcpresspro/modules/category.rb
phcpresspro-8.0.5 app/models/phcpresspro/modules/category.rb
phcpresspro-8.0.4 app/models/phcpresspro/modules/category.rb
phcpresspro-8.0.3 app/models/phcpresspro/modules/category.rb