Fix Rubocop violation

This commit is contained in:
Rafael Mendonça França 2019-12-09 12:14:24 -03:00
parent e67fdc5aeb
commit 737fb59eb3
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948

@ -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("/")