From e41ed7424ff4d113c701206beab99d137e0365c2 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Mon, 7 Dec 2009 18:30:13 -0500 Subject: [PATCH] No need for these session calls now Sessions are lazy loaded, so if you don't use them they're effectively off. --- app/controllers/contexts_controller.rb | 1 - app/controllers/projects_controller.rb | 1 - app/controllers/todos_controller.rb | 2 -- 3 files changed, 4 deletions(-) diff --git a/app/controllers/contexts_controller.rb b/app/controllers/contexts_controller.rb index 5177c399..75f3d1c5 100644 --- a/app/controllers/contexts_controller.rb +++ b/app/controllers/contexts_controller.rb @@ -7,7 +7,6 @@ class ContextsController < ApplicationController before_filter :set_context_from_params, :only => [:update, :destroy] skip_before_filter :login_required, :only => [:index] prepend_before_filter :login_or_feed_token_required, :only => [:index] - session :off, :only => :index, :if => Proc.new { |req| ['rss','atom','txt'].include?(req.parameters[:format]) } def index # #true is passed here to force an immediate load so that size and empty? diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 56da269e..a6604cb3 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -6,7 +6,6 @@ class ProjectsController < ApplicationController before_filter :default_context_filter, :only => [:create, :update] skip_before_filter :login_required, :only => [:index] prepend_before_filter :login_or_feed_token_required, :only => [:index] - session :off, :only => :index, :if => Proc.new { |req| ['rss','atom','txt'].include?(req.parameters[:format]) } def index @source_view = params['_source_view'] || 'project_list' diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index 95e29b8c..3620fe25 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -10,8 +10,6 @@ class TodosController < ApplicationController append_before_filter :get_todo_from_params, :only => [ :edit, :toggle_check, :toggle_star, :show, :update, :destroy, :remove_predecessor] protect_from_forgery :except => [:auto_complete_for_tag, :auto_complete_for_predecessor] - session :off, :only => :index, :if => Proc.new { |req| is_feed_request(req) } - def index current_user.deferred_todos.find_and_activate_ready @projects = current_user.projects.find(:all, :include => [:default_context])