method

add_controller_module

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
add_controller_module(controller, modyoule) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 346
          def add_controller_module(controller, modyoule)
            if modyoule && !controller.is_a?(Regexp)
              if controller&.start_with?("/")
                -controller[1..-1]
              else
                -[modyoule, controller].compact.join("/")
              end
            else
              controller
            end
          end
Register or log in to add new notes.