I fixed NoMethodError when including Knock::Tokenizable.
And I removed instance variable @object from Knock::Tokenizable, because I think that Knock expects Knock::Tokenizable to be included by descendent of ApplicationRecord and id method is in the descendent, not @object.
irb(main):006:0> include Knock::Tokenizable
Traceback (most recent call last):
3: from (irb):6
2: from (irb):6:in `rescue in irb_binding'
1: from (irb):6:in `include'
NoMethodError (undefined method `extends' for Object:Class)
I fixed NoMethodError when including Knock::Tokenizable. And I removed instance variable
@object
from Knock::Tokenizable, because I think that Knock expects Knock::Tokenizable to be included by descendent of ApplicationRecord andid
method is in the descendent, not@object
.