fix verwalten lva

This commit is contained in:
Andreas Stephanides
2015-07-14 14:30:17 +02:00
parent 0f221ad4f4
commit a7b6576fbd

View File

@@ -58,7 +58,11 @@ class LvasController < ApplicationController
def verwalten
@lva = Lva.find_by_id(params[:id])
@beispiel=Beispiel.new
@beispiele_all=@lva.beispiele.order(:datum).accessible_by(current_ability, :show)
@beispiele = @lva.beispiele.not_flag_badquality.not_flag_delete.order(:lecturer_id,:datum).accessible_by(current_ability, :show)
@beispiele_badQ = @lva.beispiele.flag_badquality.not_flag_delete.order(:datum).accessible_by(current_ability, :show)
@beispiele_deleted = @lva.beispiele.flag_delete.order(:datum).accessible_by(current_ability, :show)
render :show
end