Day 33

August 16, 2017 17:26 UTC Team berlin diamonds (Discourse) [2017]Subscribe to this teams's activities


Until now, our plugins were activated overriding a method in the backup model through class_eval.
Our mentor @eviltrout asked us to change it to use an event that coexists with the defined methods for the provider by default of the backup model.
I've looked into the DiscourseEvent file provided by our mentor and researched related stuff online - read about: Hashes that take blocks, Sets, events and listeners in JavaScript and read the introduction of Metaprogramming Ruby 2 by Paolo Perrotta. It's supposed to be a very good book. I have an online edition so anyone who would like to check it can ping me.
Doodled some code trying to execute a Box backup through an event and didn't work. I still don't understand the code of the DiscourseEvent so I'll take over again tomorrow.
Looked into the code of the gems that wrap the APIs of the different provides we've chose to have a general understanding of how they're built.


You must be logged in to add a comment.