added total_pages for frontend pagination

This commit is contained in:
harrybomrah committed 2014-06-04 20:38:33 +08:00
1 parent cfa22fb49c
commit 8a7e96aae8
1 file changed
+2 -1
+2 -1
View File
@@ -14,7 +14,8 @@ class AnnouncementsController < ApplicationController
end
{
"announcements" => anns,
"extras" => {"widget-title"=>"Announcements"}
"extras" => {"widget-title"=>"Announcements"},
"total_pages" => announcements.total_pages
}
end