lib/canvas_sync/generators/templates/models/section.rb in canvas_sync-0.10.2 vs lib/canvas_sync/generators/templates/models/section.rb in canvas_sync-0.10.3
- old
+ new
@@ -1,6 +1,6 @@
-<%= autogenerated_model_warning %>
+# <%= autogenerated_model_warning %>
class Section < ApplicationRecord
include CanvasSync::ApiSyncable
validates :canvas_id, uniqueness: true, presence: true
@@ -12,7 +12,8 @@
canvas_course_id: :course_id,
canvas_nonxlist_course_id: :nonxlist_course_id,
name: :name,
start_at: :start_at,
end_at: :end_at,
+ workflow_state: ->(r){ 'active' },
}, -> (api) { api.section(canvas_id) })
end