Skip to content

Instantly share code, notes, and snippets.

@reinh
Created December 10, 2008 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reinh/34420 to your computer and use it in GitHub Desktop.
Save reinh/34420 to your computer and use it in GitHub Desktop.
module ::ActionController
class Base
def self.inherited_with_facebooker(subclass)
inherited_without_facebooker(subclass)
if subclass.to_s == "ApplicationController"
subclass.send(:include,Facebooker::Rails::Controller)
subclass.helper Facebooker::Rails::Helpers
end
end
class << self
alias_method_chain :inherited, :facebooker
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment