blob: cb317583e3577d287d7a7779ec78d5545e1b8269 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module Kernel
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
require 'application'
@controller = ApplicationController.new
include_all_modules_from ActionView
|