If I understand you correctly, you need to be able to access the commentable
variable inside your Thread
extension, right?
If so, just change this:
Thread.class_eval do
To this:
Thread.class_exec(commentable) do |commentable|
And it should work.