File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ def perform(id)
14
14
end
15
15
profile = Users ::Github ::Profile . find ( id )
16
16
begin
17
- #TODO use github_id instead of login
18
- user = client . user ( profile . login )
17
+ user = client . user ( profile . github_id )
19
18
#TODO Rails4
20
19
profile . update_attributes (
21
20
{
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Profile < ActiveRecord::Base
27
27
foreign_key : :follower_id , dependent : :delete_all
28
28
has_many :repositories , class_name : 'Users::Github::Repository' ,
29
29
foreign_key : :owner_id
30
- validates :login , presence : true , uniqueness : true
30
+ validates :github_id , presence : true , uniqueness : true
31
31
before_validation :copy_login_from_user , on : :create
32
32
after_create :extract_data_from_github
33
33
You can’t perform that action at this time.
0 commit comments