0
0
Fork 0

Bind oauth applications to users

This commit is contained in:
Eugen Rochko 2016-03-14 17:49:13 +01:00
parent 25d7c1b6ea
commit 6fec8afc3f
12 changed files with 69 additions and 3 deletions

View file

@ -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