From 283d25d82334c00f2cf70770f50ae5649e6d791f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 23 Dec 2010 13:34:44 +0000 Subject: Makes /projects API accept same pagination parameters as other API collection resources. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4572 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/index.api.rsb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/projects/index.api.rsb') diff --git a/app/views/projects/index.api.rsb b/app/views/projects/index.api.rsb index 4ffee934f..121300c12 100644 --- a/app/views/projects/index.api.rsb +++ b/app/views/projects/index.api.rsb @@ -1,4 +1,4 @@ -api.array :projects do +api.array :projects, api_meta(:total_count => @project_count, :offset => @offset, :limit => @limit) do @projects.each do |project| api.project do api.id project.id -- cgit v1.2.3