module_namespacing(&block)
Wrap block with namespace of current application if namespace exists and is not skipped
# File railties/lib/rails/generators/named_base.rb, line 42 def module_namespacing(&block) content = capture(&block) content = wrap_with_namespace(content) if namespaced? concat(content) end