search for: controller_helper_modul

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

2008 Mar 03
0
A kind of monkey patch and an invitation for criticism for all you (who know this stuff better than I do)
...799 But I wanted to generalize this a little to automatically include whatever helper modules are included in the views. So I dreamt up 35 lines of goodness: class Object def metaclass; class << self; self; end; end end module ActionController class Base class_inheritable_accessor :controller_helper_module class_inheritable_accessor :controller_helper_object self.controller_helper_module = Module.new self.controller_helper_object = Object.new class << self def add_template_helper_with_controller_helper(helper_module) self.controller_helper_module.send(:include, h...