is_wiki fix thmen

This commit is contained in:
Andreas Stephanides
2014-10-19 16:35:23 +02:00
parent 55b8e17242
commit e81c263ba0

View File

@@ -65,10 +65,7 @@ class ThemenController < ApplicationController
def edit def edit
@thema = Thema.find(params[:id]) @thema = Thema.find(params[:id])
if @thema.is_wiki?
redirect_to edit_wiki_path(Wiki.find(@thema.id))
return
end
respond_to do |format| respond_to do |format|
format.html format.html
format.js { @themen= @thema.themengruppe.themen } format.js { @themen= @thema.themengruppe.themen }