app/controllers/collections_controller.rb
# TODO - review these. There are too many and as a result there's some redundancy in, for example, checking whether the user is logged in on unpublished
# collections
review these. There are too many and as a result there's some redundancy in, for example, checking whether the user is logged in on unpublished
collections
review these . There are too many and as a result there ' s some redundancy in for example checking whether the user is logged in on unpublished collections
def download_taxa_data
    if params[:data_point_uri].blank?
      flash[:warning] = I18n.t("users.data_downloads.no_selected_attributes")
      return redirect_to params.merge(action: 'choose_taxa_data', collection: @collection)
    else
      Resque.enqueue(TaxaDownload, params[:data_point_uri], current_user.id, @collection.id)
      flash[:warning] = I18n.t("collections.download_taxa_data.collection_download_under_processing")
      redirect_to collection_path(@collection)
    end
  end
def download_taxa_data if params [ :data_point_uri ] . blank? flash [ :warning ] = I18n . t ( "users.data_downloads.no_selected_attributes" ) return redirect_to params . merge ( action : 'choose_taxa_data' , collection : @collection ) else Resque . enqueue ( TaxaDownload , params [ :data_point_uri ] , current_user . id , @collection . id ) flash [ :warning ] = I18n . t ( "collections.download_taxa_data.collection_download_under_processing" ) redirect_to collection_path ( @collection ) end end
TODO - review these.
TODO - review these .