Fix Rubocop violation

上级 e67fdc5a
......@@ -355,7 +355,7 @@ def split_to(to)
def add_controller_module(controller, modyoule)
if modyoule && !controller.is_a?(Regexp)
if %r{\A/}.match?(controller)
if controller.to_s.start_with?("/")
controller[1..-1]
else
[modyoule, controller].compact.join("/")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册