fix csrf which changed with rails 2.3.11

This commit is contained in:
Reinier Balt 2011-02-12 16:26:16 +01:00
parent 736224aadb
commit 0d28115d18
4 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,6 @@ class TodosController < ApplicationController
:completed_archive, :check_deferred, :toggle_check, :toggle_star,
:edit, :update, :defer, :create, :calendar, :auto_complete_for_predecessor, :remove_predecessor, :add_predecessor]
protect_from_forgery :except => [:auto_complete_for_predecessor]
def index
@projects = current_user.projects.find(:all, :include => [:default_context])
@contexts = current_user.contexts.find(:all)