Quantcast
Channel: Using modifyClass for objects which are initialized early in boot
Viewing all articles
Browse latest Browse all 15

Using modifyClass for objects which are initialized early in boot

$
0
0

For someone trying to get this to work and hitting the same problem, I only managed to get the initializer to work by placing is it in a different folder than indicated.

This didn’t work for me:

but using this path instead worked for me

// javascripts/discourse/pre-initializers/extend-user-for-my-plugin.js

Kudos to @Lilly for providing the hint by linking to a sample code of a pre-initializer.

Read full topic


Viewing all articles
Browse latest Browse all 15

Trending Articles