AutoCommit Mit Jul 15 12:03:05 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-15 12:03:05 +02:00
parent 1d4bc2baab
commit 5b70b67bfe
3 changed files with 7 additions and 5 deletions

View File

@@ -4,9 +4,9 @@ class ThemenController < ApplicationController
# GET /themen.json
load_and_authorize_resource
def index
@themen = Thema.accessible_by(current_ability,:show)
@themen = Thema.accessible_by(current_ability,:show).where(:isdraft=>false)
@themen_drafts = Thema.accessible_by(current_ability,:show).where(:isdraft=>true)
@themen_outdated =Thema.accessible_by(current_ability,:show).outdated
end
def show
@thema = Thema.find(params[:id])