Module: Taskr::Views::XML

Includes:
Models
Defined in:
lib/taskr/views.rb

Constant Summary collapse

CONTENT_TYPE =
'text/xml'

Instance Method Summary collapse

Instance Method Details

#tasks_listObject



26
27
28
# File 'lib/taskr/views.rb', line 26

def tasks_list
  @tasks.to_xml(:root => 'tasks', :include => [:task_actions])
end

#view_taskObject



30
31
32
# File 'lib/taskr/views.rb', line 30

def view_task
  @task.to_xml(:root => 'task', :include => [:task_actions])
end