lib/yard/server/commands/base.rb in yard-0.8.2 vs lib/yard/server/commands/base.rb in yard-0.8.2.1

- old
+ new

@@ -134,15 +134,14 @@ # @param [CodeObjects::Base, nil] object calls {CodeObjects::Base#format} if # an object is provided, or {Templates::Engine.render} if object is nil. Both # receive +#options+ as an argument. # @return [String] the resulting output to display def render(object = nil) - opts = options.merge(:serialize => false) case object when CodeObjects::Base - cache object.format(opts) + cache object.format(options) when nil - cache Templates::Engine.render(opts) + cache Templates::Engine.render(options) else cache object end end