Method: Cms::Module#routes

Defined in:
lib/cms/module.rb

#routesObject

This is a bit of a hack, but we need to store the current namespaces so that module developers can just write:

BcmsZoo::Engine.routes.draw do

<tt>content_blocks :bear</tt>

end

And have it correctly find the right namespaced class model (i.e. BcmsZoo::Bear)



37
38
39
40
# File 'lib/cms/module.rb', line 37

def routes
  Module.current_namespace = ::Cms::EngineHelper.module_name(self.class)
  super
end