blob: 941d293ae7e9cf93c23870e6b34ad043289a374d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'will_paginate/array'
class ExportsController < ChouetteController
respond_to :html, :xml, :json
respond_to :js, :only => [:show, :index]
belongs_to :referential
protected
def test
test = IevApi.jobs(@referential.slug, { :action => "exporter" }).map do |export_hash|
export = Export.new(export_hash)
end
end
def collection
@exports ||= test.paginate(:page => params[:page])
end
end
|