From ebd182695d6b5de5ee04f39562cd04418cf44744 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Tue, 30 Apr 2013 20:35:13 -0500 Subject: [PATCH] remove the calendar from TodosController --- app/controllers/todos_controller.rb | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index e00f048a..b490c045 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -1,7 +1,7 @@ class TodosController < ApplicationController - skip_before_filter :login_required, :only => [:index, :calendar, :tag] - prepend_before_filter :login_or_feed_token_required, :only => [:index, :calendar, :tag] + skip_before_filter :login_required, :only => [:index, :tag] + prepend_before_filter :login_or_feed_token_required, :only => [:index, :tag] append_before_filter :find_and_activate_ready, :only => [:index, :list_deferred] append_before_filter :set_group_view_by, :only => [:index, :tag, :create, :list_deferred, :destroy, :defer, :update, :toggle_check] @@ -733,27 +733,6 @@ class TodosController < ApplicationController end end - def calendar - @source_view = params['_source_view'] || 'calendar' - @page_title = t('todos.calendar_page_title') - - @calendar = Todos::Calendar.new(current_user) - @projects = @calendar.projects - @count = current_user.todos.not_completed.are_due.count - - respond_to do |format| - format.html - format.ics { - @due_all = current_user.todos.not_completed.are_due.reorder("due") - render :action => 'calendar', :layout => false, :content_type => Mime::ICS - } - format.xml { - @due_all = current_user.todos.not_completed.are_due.reorder("due") - render :xml => @due_all.to_xml( *to_xml_params ) - } - end - end - def list_hidden @hidden = current_user.todos.hidden respond_to do |format| @@ -1333,4 +1312,4 @@ class TodosController < ApplicationController return not_done_todos end -end \ No newline at end of file +end