Sha256: 02a5a7b7867392751a40d8a2a9a60ff7022629291cf7eb174f0d7b78efcf33f5

Contents?: true

Size: 270 Bytes

Versions: 1

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

class Tramway::Page::Page < ::Tramway::Core::ApplicationRecord
  has_many :blocks, class_name: 'Tramway::Landing::Block'

  enumerize :page_type, in: %i[main other], default: :other

  scope :landings, -> { where page_type: :landing }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tramway-page-1.5 app/models/tramway/page/page.rb