Sha256: 120a5016853c0afa4504e8efb71b67a21664f56b3ba39d56a780c7b114640822

Contents?: true

Size: 540 Bytes

Versions: 8

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true
module C
  class Location < ApplicationRecord
    include SitePage
    include Imageable
    include Previewable
    include Orderable

    validates :name, presence: true

    INDEX_TABLE = {
      "Name": { link: { name: { call: 'name' }, options: '[:edit, object]' }, sort: 'name' },
      "Published": { call: 'published', sort: 'published' },
      "Created": { call: 'created_at', sort: 'published' },
      "Edit": { link: { name: { text: 'edit' }, options: '[:edit, object]' } }
    }.freeze
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/models/c/location.rb
cd2_catton_cms-1.1.34 app/models/c/location.rb
cd2_catton_cms-1.1.33 app/models/c/location.rb
cd2_catton_cms-1.1.32 app/models/c/location.rb
cd2_catton_cms-1.1.31 app/models/c/location.rb
cd2_catton_cms-1.1.30 app/models/c/location.rb
cd2_catton_cms-1.1.20 app/models/c/location.rb
cd2_catton_cms-1.1.10 app/models/c/location.rb