AutoCommit Son Sep 13 12:03:20 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-09-13 12:03:21 +02:00
parent d85a01c810
commit b073a1a098
8 changed files with 39 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ class HomeController < ApplicationController
end
def infoscreen
authorize! :doadmin, User
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :show).limit(10)
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :show).where(flag_infoscreen: true)
render layout: false
end
def kontakt

View File

@@ -3,6 +3,7 @@ class NeuigkeitenController < ApplicationController
before_filter :load_toolbar_elements, :only=>[:show,:find_link]
before_filter :load_toolbar_elements_edit, :only=>[:edit]
acts_as_flagable