Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add before_filter to pages controller from refinery engine
require 'refinerycms'
module Refinery
module MyEngine
class Engine < Rails::Engine
refinery.after_inclusion do
::PagesController.class_eval do
before_filter :check_some_stuff, :only => :show
def check_some_stuff
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment