Skip to content

Commit

Permalink
Fixes the processing of the class list menu
Browse files Browse the repository at this point in the history
The method that I overrode from YARD changed so I updated the method
signature of this implementation to make it work.
  • Loading branch information
Franklin Webber committed Dec 6, 2016
1 parent db7bbcb commit 4944ea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/templates/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def generate_step_list
# See the layout template method that loads the menus
def generate_featuredirectories_list
directories_ordered_by_name = root_feature_directories.sort {|x,y| x.value.to_s <=> y.value.to_s }
generate_full_list directories_ordered_by_name, :featuredirectories,
generate_full_list directories_ordered_by_name, :featuredirectories,
:list_title => "Features by Directory",
:list_filename => "featuredirectories_list.html"
end
Expand Down Expand Up @@ -143,7 +143,7 @@ def generate_full_list(objects,type,options = {})
# This method removes the namespace from the root node, generates the class list,
# and then adds it back into the root node.
#
def class_list(root = Registry.root)
def class_list(root = Registry.root, tree = TreeContext.new)
return super unless root == Registry.root

cucumber_namespace = YARD::CodeObjects::Cucumber::CUCUMBER_NAMESPACE
Expand Down

0 comments on commit 4944ea7

Please sign in to comment.