studien load

This commit is contained in:
Andreas Stephanides
2015-05-07 11:15:47 +02:00
parent 7a3255ef6f
commit 69fa1ed634
3 changed files with 13 additions and 1 deletions

View File

@@ -6,7 +6,11 @@ class ModulsController < ApplicationController
before_filter :load_toolbar_show, :only=>[:show] # Toolbar für show erstellen
before_filter :load_toolbar_index, :only=>[:index] # Toolbar für index erstellen
load_and_authorize_resource
before_filter :load_studien
def load_studien
@studien = Studium.accessible_by(current_ability, :show)
end
def index
@moduls = Modul.all
if @moduls