diff --git a/plugins/oauth_client/lib/ext/profile.rb b/plugins/oauth_client/lib/ext/profile.rb index c657b89..f0c1c65 100644 --- a/plugins/oauth_client/lib/ext/profile.rb +++ b/plugins/oauth_client/lib/ext/profile.rb @@ -1,10 +1,8 @@ require_dependency 'profile' -Profile.descendants.each do |subclass| - subclass.class_eval do +class Profile - has_many :oauth_auths, foreign_key: :profile_id, class_name: 'OauthClientPlugin::Auth', dependent: :destroy - has_many :oauth_providers, through: :oauth_auths, source: :provider + has_many :oauth_auths, foreign_key: :profile_id, class_name: 'OauthClientPlugin::Auth', dependent: :destroy + has_many :oauth_providers, through: :oauth_auths, source: :provider - end end -- libgit2 0.21.2