From 69b7604761ea54af8f97cbdd507304cab229ce07 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Sun, 18 Jan 2015 15:08:18 +0100 Subject: [PATCH] fix calendar for all --- app/controllers/rubriken_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/rubriken_controller.rb b/app/controllers/rubriken_controller.rb index 88c6250..141dbd6 100755 --- a/app/controllers/rubriken_controller.rb +++ b/app/controllers/rubriken_controller.rb @@ -10,7 +10,7 @@ class RubrikenController < ApplicationController @neuigkeiten = Neuigkeit.public.published.page(params[:page]).per(3) end - @calentries= @rubriken.collect(&:calentries).flatten + @calentries= (@rubriken.map {|r| r.calendar}).collect(&:calentries).flatten respond_to do |format| format.html format.js {render action: :show}