module Doorkeeper::Models::ResourceOwnerable::ClassMethods
def resource_owner_id_for(resource_owner)
-
(ActiveRecord::Base, Integer)-
Parameters:
-
resource_owner(ActiveRecord::Base, Integer) --
def resource_owner_id_for(resource_owner) if resource_owner.respond_to?(:to_key) resource_owner.id else resource_owner end end