diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ecca5f67..357c7cf1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -256,4 +256,12 @@ class ApplicationController < ActionController::Base @z_index_counter = 500 end + def to_xml_params + if params[:limit_fields] == 'index' + return [:only => [:id, :created_at, :updated_at, :completed_at] ] + else + return [:except => :user_id, :include => [:tags, :predecessors, :successors] ] + end + end + end diff --git a/app/controllers/calendar_controller.rb b/app/controllers/calendar_controller.rb index e9b952ca..53d2e82e 100644 --- a/app/controllers/calendar_controller.rb +++ b/app/controllers/calendar_controller.rb @@ -21,12 +21,4 @@ class CalendarController < ApplicationController } end end - - def to_xml_params - if params[:limit_fields] == 'index' - return [:only => [:id, :created_at, :updated_at, :completed_at] ] - else - return [:except => :user_id, :include => [:tags, :predecessors, :successors] ] - end - end end diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index b490c045..afb82ab4 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -815,14 +815,6 @@ class TodosController < ApplicationController end end - def to_xml_params - if params[:limit_fields] == 'index' - return [:only => [:id, :created_at, :updated_at, :completed_at] ] - else - return [:except => :user_id, :include => [:tags, :predecessors, :successors] ] - end - end - def get_todo_from_params # TODO: this was a :append_before but was removed to tune performance per # method. Reconsider re-enabling it