templates/api/fulldoc/html/setup.rb in yard-api-0.3.6 vs templates/api/fulldoc/html/setup.rb in yard-api-0.3.7

- old
+ new

@@ -116,10 +116,10 @@ ) YARD::Registry.register co (controller.tags(:object) + controller.tags(:model)).each do |tag| - id = YARD::CodeObjects::APIObject.sanitize_id(tag.text.lines[0].strip) + id = YARD::CodeObjects::APIObject.sanitize_id(tag.text.lines.first.strip) tag_co = YARD::CodeObjects::APIObject.new(co, id) tag_co.object = tag.object # Make an alias on the global API namespace, for convenience. # Now an object called "Bar" under the "Foo" controller can be