Sha256: fae01f00fb6e76ef8607ebfb0b4b6e2436b5302192b4c6ce6c6c482c37563153

Contents?: true

Size: 433 Bytes

Versions: 25

Compression:

Stored size: 433 Bytes

Contents

# <%= autogenerated_event_warning %>

module LiveEvents
  class ModuleItemEvent < CanvasSync::LiveEvents::BaseHandler

    def process
      context_module_item = ContextModuleItem.find_or_initialize_by(canvas_id: payload["module_item_id"])
      context_module_item.sync_from_api
    end

  end

  class ModuleItemCreatedEvent < LiveEvents::ModuleItemEvent; end
  class ModuleItemUpdatedEvent < LiveEvents::ModuleItemEvent; end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.8 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb