aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/imports_controller.rb
blob: 7e33b8c26469e8db9665b4cc83cf4238b1bb61db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class ImportsController < ChouetteController
  respond_to :html, :xml, :json
  belongs_to :referential

  def create
    create! do |success, failure|
      success.html { redirect_to referential_imports_path(@referential) }
    end
  end

  protected

  def collection
    @imports ||= end_of_association_chain.paginate(:page => params[:page])
  end

end