Merge branch 'master' of github.com:fetsite/fetsite

Conflicts:
	Gemfile.lock
This commit is contained in:
Andreas Stephanides
2014-02-20 10:52:49 +01:00
4 changed files with 76 additions and 49 deletions

View File

@@ -17,7 +17,7 @@ class GremienController < ApplicationController
if params[:filter].nil?
@gremien = Gremium.where("CAST(typ AS INT) < 10").order(:typ).order(:name)
else
@gremien = Gremium.order(:typ).order(:name).where("CAST(typ AS INT) == ?",params[:filter])
@gremien = Gremium.order(:typ).order(:name).where("CAST(typ AS INT) = ?",params[:filter].to_i)
end