如何在下面的筛选器中找到命名空间或模块'Foo‘的名称?
class ApplicationController < ActionController::Base
def get_module_name
@module_name = ???
end
end
class Foo::BarController < ApplicationController
before_filter :get_module_name
end
https://stackoverflow.com/questions/133357
复制相似问题