method

translate_controller

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
translate_controller(controller) 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 330
          def translate_controller(controller)
            return controller if Regexp === controller
            return controller.to_s if /\A[a-z_0-9][a-z_0-9\/]*\z/.match?(controller)

            yield
          end
Register or log in to add new notes.