Skip to content

Commit

Permalink
Fix rubocop issues in navigation_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
luisramos0 committed Feb 5, 2020
1 parent d5373ee commit e48e2fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/helpers/spree/admin/navigation_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Spree
module Admin
module NavigationHelper
Expand Down Expand Up @@ -34,7 +36,9 @@ def tab(*args)
end

selected = if options[:match_path]
request.fullpath.starts_with?("#{main_app.root_path}admin#{options[:match_path]}")
request.
fullpath.
starts_with?("#{main_app.root_path}admin#{options[:match_path]}")
else
args.include?(controller.controller_name.to_sym)
end
Expand Down

0 comments on commit e48e2fd

Please sign in to comment.