class TaskDefinitionSerializer < ActiveModel::Serializer
  attributes :id, :abbreviation, :name, :description,
    :weight, :target_grade, :target_date,
    :upload_requirements,
    :plagiarism_checks, :plagiarism_report_url, :plagiarism_warn_pct,
    :restrict_status_updates,
    :group_set_id, :has_task_pdf?, :has_task_resources?,
    :due_date, :start_date, :is_graded

  def weight
    object.weighting
  end
end

class TaskDefinitionSerializer < ActiveModel::Serializer
  attributes :id, :abbreviation, :name, :description, 
    :weight, :target_grade, :target_date, 
    :upload_requirements, 
    :plagiarism_checks, :plagiarism_report_url, :plagiarism_warn_pct,
    :restrict_status_updates,
    :group_set_id, :has_task_pdf?, :has_task_resources?,
    :due_date, :start_date

  def weight
  	object.weighting
  end
end

--- 
+++ 
@@ -1,13 +1,13 @@
 class TaskDefinitionSerializer < ActiveModel::Serializer
-  attributes :id, :abbreviation, :name, :description, 
-    :weight, :target_grade, :target_date, 
-    :upload_requirements, 
+  attributes :id, :abbreviation, :name, :description,
+    :weight, :target_grade, :target_date,
+    :upload_requirements,
     :plagiarism_checks, :plagiarism_report_url, :plagiarism_warn_pct,
     :restrict_status_updates,
     :group_set_id, :has_task_pdf?, :has_task_resources?,
-    :due_date, :start_date
+    :due_date, :start_date, :is_graded
 
   def weight
-  	object.weighting
+    object.weighting
   end
 end
ENHANCE: Add is_graded to task definition serializer
