method

translate_controller

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
translate_controller(controller) private

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 353
          def translate_controller(controller)
            return controller if Regexp === controller
            return controller.to_s if controller =~ /\A[a-z_0-9][a-z_0-9\/]*\z/

            yield
          end
Register or log in to add new notes.