added total_pages for frontend pagination

This commit is contained in:
Harry Bomrah 2014-06-04 20:38:33 +08:00
parent cfa22fb49c
commit 8a7e96aae8
1 changed files with 2 additions and 1 deletions

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