mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 04:02:19 -05:00
remove unnecessary inverse_of
This commit is contained in:
1 file changed
+4
-6
+4
-6
@@ -46,17 +46,15 @@ class User < ApplicationRecord
|
||||
attribute :problem_settings, :json
|
||||
attribute :file_list_settings, :json
|
||||
|
||||
has_many :access_grants,
|
||||
has_many :access_grants, # rubocop:disable Rails/InverseOf
|
||||
class_name: "Doorkeeper::AccessGrant",
|
||||
foreign_key: :resource_owner_id,
|
||||
dependent: :delete_all,
|
||||
inverse_of: :resource_owner
|
||||
dependent: :delete_all
|
||||
|
||||
has_many :access_tokens,
|
||||
has_many :access_tokens, # rubocop:disable Rails/InverseOf
|
||||
class_name: "Doorkeeper::AccessToken",
|
||||
foreign_key: :resource_owner_id,
|
||||
dependent: :delete_all,
|
||||
inverse_of: :resource_owner
|
||||
dependent: :delete_all
|
||||
|
||||
has_many :oauth_applications,
|
||||
class_name: "Doorkeeper::Application",
|
||||
|
||||
Reference in new issue
Block a user