added pagination
This commit is contained in:
parent
52278526e8
commit
f4396805e9
|
@ -10,7 +10,8 @@ class GalleriesController < ApplicationController
|
|||
end
|
||||
{
|
||||
"albums" => albums,
|
||||
"extras" => {"widget-title"=>"Gallery"}
|
||||
"extras" => {"widget-title"=>"Gallery"},
|
||||
"total_pages" => albums.total_pages
|
||||
}
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue