blob: b666587571c1471ed0654840ce79cc8b4487c047 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class InfoRequestBatchController < ApplicationController
def show
@info_request_batch = InfoRequestBatch.find(params[:id])
@per_page = 25
@page = get_search_page_from_params
if @info_request_batch.sent_at
@info_requests = @info_request_batch.info_requests.visible.all(:offset => (@page - 1) * @per_page,
:limit => @per_page)
else
@public_bodies = @info_request_batch.public_bodies.all(:offset => (@page - 1) * @per_page,
:limit => @per_page)
end
end
end
|