module Admin
class CategoriesController < AdminController
class Admin::CategoriesController < ApplicationController
module A1
TEST = 'zz'
end
module A1
class B1
def foo
TEST
end
end
end
module A2
TEST = 'zz'
end
class A2::B2
def foo
TEST
end
end
A1::B1.new.foo #> "zz"
A2::B2.new.foo #> NameError: uninitialized constant A2::B2::TEST