Zusatz LVa-automatismus

This commit is contained in:
Thomas Blazek
2013-07-29 20:17:00 +02:00
parent 733080c093
commit cacee4aa60
2 changed files with 9 additions and 6 deletions

View File

@@ -31,10 +31,10 @@ class LvasController < ApplicationController
# POST /lvas.json
def create
@lva = Lva.new(params[:lva])
Lva.add_semesters(@lva)
respond_to do |format|
if @lva.save
Lva.add_semesters(@lva)
format.html { redirect_to @lva, notice: 'Lva was successfully created.' }
else