mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix Rubocop violation
This commit is contained in:
parent
e67fdc5aeb
commit
737fb59eb3
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ module ActionDispatch
|
||||||
|
|
||||||
def add_controller_module(controller, modyoule)
|
def add_controller_module(controller, modyoule)
|
||||||
if modyoule && !controller.is_a?(Regexp)
|
if modyoule && !controller.is_a?(Regexp)
|
||||||
if %r{\A/}.match?(controller)
|
if controller.to_s.start_with?("/")
|
||||||
controller[1..-1]
|
controller[1..-1]
|
||||||
else
|
else
|
||||||
[modyoule, controller].compact.join("/")
|
[modyoule, controller].compact.join("/")
|
||||||
|
|
Loading…
Reference in a new issue