This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

user after_commit instead of after_create

  • Loading branch information...
rkh committed Mar 20, 2013
1 parent 5a161d5 commit 14f0567eb92e183a8d3ef75197e540a73a9a7225
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/travis/model/user.rb
View
@@ -15,7 +15,7 @@ class User < ActiveRecord::Base
before_create :set_as_recent
after_create :create_a_token
- after_create :sync
+ after_commit :sync, on: :create
serialize :github_scopes
before_save :track_github_scopes

0 comments on commit 14f0567

Please sign in to comment.