devise_token_auth icon indicating copy to clipboard operation
devise_token_auth copied to clipboard

NoMethodError (super: no superclass method `create_token' for #<User:0x000055b9ceeeac68>)

Open Mracobes9 opened this issue 5 years ago • 0 comments

Hi. I got a a error NoMethodError (super: no superclass method `create_token' for #<User:0x000055b9ceeeac68>). My code:

def create_token(client: nil, lifespan: nil, cost: nil, **token_extras)
    super
end

Ruby version: 2.6.3 Rails version: 6.0.2.1 Gem version: 1.1.3

Mracobes9 avatar Feb 20 '20 13:02 Mracobes9