Sha256: 56d98a3b1346e40c273842f7cf8b4940104f51973d595331520b8ffaab9d12bb

Contents?: true

Size: 662 Bytes

Versions: 3

Compression:

Stored size: 662 Bytes

Contents

class ResourceImportResultsController < InheritedResources::Base
  respond_to :html, :json, :tsv
  load_and_authorize_resource
  has_scope :file_id
  actions :index, :show, :destroy

  def index
    @resource_import_file = ResourceImportFile.where(:id => params[:resource_import_file_id]).first
    if @resource_import_file
      if params[:format] == 'tsv'
        @resource_import_results = @resource_import_file.resource_import_results
      else
        @resource_import_results = @resource_import_file.resource_import_results.page(params[:page])
      end
    else
      @resource_import_results = ResourceImportResult.page(params[:page])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 app/controllers/resource_import_results_controller.rb
enju_biblio-0.1.0.pre54 app/controllers/resource_import_results_controller.rb
enju_biblio-0.1.0.pre53 app/controllers/resource_import_results_controller.rb