Method: LiveEvents::ModuleEvent#process
- Defined in:
- lib/canvas_sync/generators/templates/services/live_events/module_event.rb
#process ⇒ Object
6 7 8 9 10 |
# File 'lib/canvas_sync/generators/templates/services/live_events/module_event.rb', line 6 def process return unless payload["context_type"] == "Course" context_module = ContextModule.find_or_initialize_by(canvas_id: payload["module_id"]) context_module.sync_from_api end |