app/controllers/landable/public/pages_controller.rb in landable-1.13.1 vs app/controllers/landable/public/pages_controller.rb in landable-1.13.2

- old
+ new

@@ -1,6 +1,6 @@ -require_dependency "landable/application_controller" +require_dependency 'landable/application_controller' module Landable module Public class PagesController < ApplicationController respond_to :html @@ -16,10 +16,10 @@ def current_page @current_page ||= Page.by_path(request.path) end def current_snapshot - @current_snapshot ||= current_page.published_revision.try(:snapshot) or Page.missing + @current_snapshot ||= current_page.published_revision.try(:snapshot) || Page.missing end end end end