Skip to content

Commit

Permalink
Update based on Rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
martikat committed Jan 14, 2025
1 parent 41c7d55 commit d20bcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def to_partial_path
# @return [Hash{String=>String}]
def breadcrumbs
root = { 'Home' => '/' }
list = [self, self&.parent, self&.parent&.parent, self&.parent&.parent&.parent].compact.reverse
list = [self, parent, parent&.parent, parent&.parent&.parent].compact.reverse
list.shift
list.each_with_object(root) do |page, crumbs|
crumbs[page.title] = page.path
Expand Down

0 comments on commit d20bcca

Please sign in to comment.