Fix Rubocop violation
This commit is contained in:
parent
e67fdc5aeb
commit
737fb59eb3
@ -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("/")
|
||||
|
Loading…
Reference in New Issue
Block a user