membership gremium scope

This commit is contained in:
Andreas Stephanides
2014-09-14 18:30:56 +02:00
parent f8d00e7b4f
commit c40804b5cb
3 changed files with 7 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class GremienController < ApplicationController
def show
@gremium = Gremium.find(params[:id])
@gremientabs=Gremium.tabs
@memberships=@gremium.memberships.active.includes(:fetprofile).order(:typ,"fetprofiles.vorname","fetprofiles.nachname")
@memberships=@gremium.memberships.visible_in_gremium
respond_to do |format|
format.html # show.html.erb