Sha256: 7d805a83cf7b2da7edf27abdaaf8ca75fab0817cf714f6112c5fb9354f8eb2ee

Contents?: true

Size: 413 Bytes

Versions: 22

Compression:

Stored size: 413 Bytes

Contents

module Phcmemberspro
  class Directory::Category < ApplicationRecord

    # Add Paper Trail
    has_paper_trail

    # Model Relationships
    has_many :categorylistings, class_name: 'Phcmemberspro::Directory::Categorylisting', dependent: :destroy
    has_many :listings, class_name: 'Phcmemberspro::Member::Listing', :through => :categorylistings

    validates :catname,
      length: { minimum: 3 }

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
phcmemberspro-20.0.4 app/models/phcmemberspro/directory/category.rb
phcmemberspro-20.0.3 app/models/phcmemberspro/directory/category.rb
phcmemberspro-20.0.2 app/models/phcmemberspro/directory/category.rb
phcmemberspro-20.0.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-20.0.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-19.0.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-19.0.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-18.0.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-18.0.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-16.0.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-16.0.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-15.1.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-15.1.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-15.0.3 app/models/phcmemberspro/directory/category.rb
phcmemberspro-15.0.2 app/models/phcmemberspro/directory/category.rb
phcmemberspro-15.0.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-15.0.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.7.7 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.7.5 app/models/phcmemberspro/directory/category.rb
phcmemberspro-14.7.4 app/models/phcmemberspro/directory/category.rb