Sha256: 8e17bca7ba7b9e08b9d491be2f422b3bbc57c1a6de7bb886da8afbfa3b0abcab
Contents?: true
Size: 441 Bytes
Versions: 86
Compression:
Stored size: 441 Bytes
Contents
class Module def include_all_modules_from(parent_module) parent_module.constants.each do |const| mod = parent_module.const_get(const) if mod.class == Module send(:include, mod) include_all_modules_from(mod) end end end end def helper @helper_proxy ||= Object.new end require 'application' class << helper include_all_modules_from ActionView end @controller = ApplicationController.new
Version data entries
86 entries across 86 versions & 6 rubygems