Update:
I removed xss_template and all references to it from the project and now
I'm getting the same error, but with another plugin 'stampable':
undefined local variable or method `stampable' for
#<Class:0x7f96cb59c978>
So, this seems to be a problem with plugin initialization. How should I
go about getting to the root of it?