forked from bofh/fetsite
AutoCommit Mit Jun 10 17:03:04 CEST 2015
This commit is contained in:
@@ -3,8 +3,8 @@ class CalendarsController < ApplicationController
|
||||
# GET /calendars.json
|
||||
load_and_authorize_resource
|
||||
def index
|
||||
@calendars = Calendar.accessible_by(current_ability)
|
||||
@calentries = Calentry.accessible_by(current_ability)
|
||||
@calendars = Calendar.accessible_by(current_ability,:show)
|
||||
@calentries =@calendars.map{|c| c.calentries }.flatten
|
||||
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
|
||||
Reference in New Issue
Block a user