app/controllers/refinery/pages/admin/preview_controller.rb in refinerycms-pages-2.1.4 vs app/controllers/refinery/pages/admin/preview_controller.rb in refinerycms-pages-2.1.5
- old
+ new
@@ -1,12 +1,15 @@
module Refinery
module Pages
module Admin
- class PreviewController < AdminController
- include Pages::InstanceMethods
+ class PreviewController < Refinery::PagesController
+ include ::Refinery::ApplicationController
+ helper ApplicationHelper
+ helper Refinery::Core::Engine.helpers
+ include Refinery::Admin::BaseController
include Pages::RenderOptions
- before_filter :find_page
+ skip_before_filter :error_404, :set_canonical
layout :layout
def show
render_with_templates?