require 'refinerycms-pages' require 'shellac' require 'refinerycms-varnish-pages/version' module Refinery module VarnishPages class Engine < Rails::Engine config.before_initialize do require File.expand_path('../refinerycms-varnish-pages/pages_controller_extension', __FILE__) require File.expand_path('../refinerycms-varnish-pages/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 config.after_initialize do Refinery::Plugin.register do |plugin| plugin.pathname = root plugin.version = Refinery::VarnishPages::VERSION plugin.name = "varnish_pages" plugin.hide_from_menu = true end end end end end