How does doorkeeper support multiple Models? something like this..

Hi @errawn . Check this one and latest Doorkeeper version:" https://github.com/doorkeeper-gem/doorkeeper/pull/1355
Basically now you can enable polymorphic resource owner and just get it from the doorkeeper_token itself (type & id)
Thank you @nbulaj! Will try it out. Does it have a detailed docs or in wiki? Thank you very much
@errawn nope. still no docs or wiki page :(
@nbulaj I am getting
undefined local variable or method 'use_polymorphic_resource_owner' for #<Doorkeeper::Config::Builder:0x00007fb56eb9e328> (NameError)
When I run bundle exec rails g doorkeeper:enable_polymorphic_resource_owner
Which version do you use? This feature isn't released yet and available only on master
I think we can close this issue. If you wanna to use polymorphic resource owner feature - you need to use master version of the gem.
Also I saw somewhere on StackOverflow how people bypass the restrictions of Doorkeeper and uses additional http parameter or even scopes to indicate resource owner type. Try to find it
thanks @nbulaj awesome work! <3
Most helpful comment
Added docs here: https://doorkeeper.gitbook.io/guides/ruby-on-rails/polymorphic-resource-owner