app/models/tramway/page/page.rb in tramway-page-1.4 vs app/models/tramway/page/page.rb in tramway-page-1.4.1

- old
+ new

@@ -1,7 +1,9 @@ # frozen_string_literal: true class Tramway::Page::Page < ::Tramway::Core::ApplicationRecord - enumerize :page_type, in: [ :custom, :landing ], default: :custom + has_many :blocks, class_name: 'Tramway::Landing::Block' + + enumerize :page_type, in: [ :main, :other ], default: :other scope :landings, -> { where page_type: :landing } end