Sha256: 766985f993d2455414239eb91756f608589ed602a69d312502acc2e9a4cca7f3

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

module Yaw
  class WikiSpace < ApplicationRecord
    self.table_name = 'wiki_spaces'
    has_many :wiki_pages, inverse_of: :wiki_space, dependent: :destroy
    def to_param
      title
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yaw-0.0.2 app/models/yaw/wiki_space.rb