app/models/tramway/page/page.rb in tramway-page-1.5.1 vs app/models/tramway/page/page.rb in tramway-page-1.5.1.1

- old
+ new

@@ -4,9 +4,10 @@ has_many :blocks, class_name: 'Tramway::Landing::Block' enumerize :page_type, in: %i[main other], default: :other scope :landings, -> { where page_type: :landing } + scope :published, -> { where view_state: :published } state_machine :view_state, initial: :unpublished do state :unpublished state :published