method
add_controller_module
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Mapping
add_controller_module(controller, modyoule)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 343
def add_controller_module(controller, modyoule)
if modyoule && !controller.is_a?(Regexp)
if controller =~ %{\A/}
controller[1..-1]
else
[modyoule, controller].compact.join("/")
end
else
controller
end
end