app/models/tramway/landing/block.rb in tramway-landing-2.2.3 vs app/models/tramway/landing/block.rb in tramway-landing-2.2.3.1

- old
+ new

@@ -22,10 +22,10 @@ store_accessor :values, :page store_accessor :values, :form_url scope :on_main_page, -> do - active.where(view_state: :published).where("(values -> 'page') IS NOT NULL").order :position + active.where(view_state: :published).where("(values -> 'page') IS NULL").order :position end scope :with_navbar_link, -> { where navbar_link: :exist } scope :header, -> { on_main_page.where(block_type: :header).first } scope :footer, -> { on_main_page.where(block_type: :footer).first }