app/helpers/landable/pages_helper.rb in landable-1.13.1 vs app/helpers/landable/pages_helper.rb in landable-1.13.2

- old
+ new

@@ -4,12 +4,12 @@ return Landable::NullPageDecorator.new if page.nil? @landable ||= Landable::PageDecorator.new(page) end def current_page - if params[:controller] == "landable/public/preview/page_revisions" + if params[:controller] == 'landable/public/preview/page_revisions' current_page = PageRevision.find(params[:id]) - elsif params[:controller] == "landable/public/preview/pages" + elsif params[:controller] == 'landable/public/preview/pages' current_page = Page.find(params[:id]) else current_page = Page.by_path(request.path) end