Created
July 9, 2011 17:16
-
-
Save jswanner/1073762 to your computer and use it in GitHub Desktop.
Add before_filter to pages controller from refinery engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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