Sha256: e79c2b6621aea5c9459f48cd230a29b5a57d9c66f0a36c47b77b3bfd4edc2a9d

Contents?: true

Size: 261 Bytes

Versions: 5

Compression:

Stored size: 261 Bytes

Contents

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

    has_many :sections, dependent: :destroy
    has_many :sites_users, class_name: '::Cas::SitesUser'
    has_many :users, through: :sites_users
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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