app/models/tramway/page/page.rb in tramway-page-1.6 vs app/models/tramway/page/page.rb in tramway-page-1.6.0.1
- old
+ new
@@ -1,7 +1,7 @@
# frozen_string_literal: true
-class Tramway::Page::Page < ::Tramway::Core::ApplicationRecord
+class Tramway::Page::Page < ::Tramway::ApplicationRecord
has_many :blocks, -> { order(position: :asc) }, class_name: 'Tramway::Landing::Block'
enumerize :page_type, in: %i[main other without_layout], default: :other
scope :landings, -> { where page_type: :landing }