mit-teaching-systems-lab / discourse-edx-lti

Discourse plugin for using Discourse as a discussion forum in EdX courses
http://tsl.mit.edu
MIT License
22 stars 6 forks source link

Do plugin work on activation, only defer adding endpoint until after_initialize #2

Closed kevinrobinson closed 7 years ago

kevinrobinson commented 7 years ago

In trying to get the redirect endpoint to register successfully, I moved everything in the plugin to after_initialize. This doesn't work, since plugin#activate! expects all resources like scripts, styles and auth_providers to be registered synchronously. This fixes that up so that only the endpoint is deferred.

kevinrobinson commented 7 years ago

selfie, tested manually