Bind oauth applications to users
This commit is contained in:
parent
25d7c1b6ea
commit
6fec8afc3f
12 changed files with 69 additions and 3 deletions
|
@ -5,4 +5,6 @@ class User < ActiveRecord::Base
|
|||
accepts_nested_attributes_for :account
|
||||
|
||||
validates :account, presence: true
|
||||
|
||||
has_many :oauth_applications, class_name: 'Doorkeeper::Application', as: :owner
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue