Sha256: c17e19b7fed19a16286445af86856b550f17b25e8341654fe993b2643744677e

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 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: [ :main, :other ], default: :other

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-page-1.4.2 app/models/tramway/page/page.rb
tramway-page-1.4.1.1 app/models/tramway/page/page.rb
tramway-page-1.4.1 app/models/tramway/page/page.rb