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 redirect_to_choose(for_what)
    if params[:scope] == 'selected_items'
      return no_items_selected_error(:copy) if params[:collection_items].nil? or params[:collection_items].empty?
    end
    return_to = request.referrer || collection_path(@collection)
    return redirect_to params.merge(action: 'choose', for: for_what, return_to: return_to).except(*unnecessary_keys_for_redirect)
  end
def redirect_to_choose ( for_what ) if params [ :scope ] == 'selected_items' return no_items_selected_error ( :copy ) if params [ :collection_items ] . nil? or params [ :collection_items ] . empty? end return_to = request . referrer || collection_path ( @collection ) return redirect_to params . merge ( action : 'choose' , for : for_what , return_to : return_to ) . except ( * unnecessary_keys_for_redirect ) end
TODO - review these.
TODO - review these .
for_what
<not_specific>