Sha256: 77e120ebc930a7c957c9f3905da8f9987eeb99c378965bff8830a6d5d17a1c21

Contents?: true

Size: 230 Bytes

Versions: 6

Compression:

Stored size: 230 Bytes

Contents

module Cas
  class Section < ApplicationRecord
    extend ::FriendlyId
    friendly_id :name, use: :slugged

    belongs_to :site
    has_many :contents, dependent: :destroy
    has_many :categories, dependent: :destroy
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cas-cms-1.0.0.alpha2 app/models/cas/section.rb
cas-cms-1.0.0.alpha1 app/models/cas/section.rb
cas-cms-0.1.3 app/models/cas/section.rb
cas-cms-0.1.2 app/models/cas/section.rb
cas-cms-0.1.1 app/models/cas/section.rb
cas-cms-0.1.0 app/models/cas/section.rb