require 'refinerycms-pages' require 'shellac' module Refinery module VarnishPages class Engine < Rails::Engine config.before_initialize do require File.expand_path('../refinerycms_varnish/pages_controller_extension', __FILE__) require File.expand_path('../refinerycms_varnish/page_extension', __FILE__) end refinery.after_inclusion do ::Admin::PagesController.send :include, RefinerycmsVarnish::PagesControllerExtension end config.to_prepare do ::Page.send :include, ::RefinerycmsVarnish::PageExtension end end end end