From 127f68a7788e1bdb2114875652c74c2403f424ac Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Tue, 28 May 2013 00:41:12 +0200 Subject: [PATCH] Fix Api::CommentsController#index --- app/controllers/api/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/comments_controller.rb b/app/controllers/api/comments_controller.rb index f2a610c..638e543 100644 --- a/app/controllers/api/comments_controller.rb +++ b/app/controllers/api/comments_controller.rb @@ -5,7 +5,7 @@ class Api::CommentsController < ApplicationController before_filter :load_asciicast, :only => [:index, :create] def index - respond_with CommentDecorator.decorate(@asciicast.comments) + respond_with CommentDecorator.decorate_collection(@asciicast.comments) end def create