search for: inherited_without_facebooker

Displaying 1 result from an estimated 1 matches for "inherited_without_facebooker".

2009 Jan 20
0
alias_method_chain in Facebooker Causing Stack Level Too Deep
...pretty popular way to override methods, so I can''t imagine this being the first instance of alias_method_chain causing this problem. Here is some of the sample code I''m looking to fix: 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 unless ActionController::Base.respond_to? (:inherited_with_facebooke...