Skip to content

Commit

Permalink
fix for migration (publiclab#2210)
Browse files Browse the repository at this point in the history
* fix for migration

* Update drupal_user.rb
  • Loading branch information
jywarren authored Feb 2, 2018
1 parent 3260d3a commit c16585b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/drupal_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DrupalUser < ActiveRecord::Base
has_many :comments, foreign_key: 'uid'

def user
User.where(username: name).first
User.where(id: self.id).first
end

def bio
Expand Down

0 comments on commit c16585b

Please sign in to comment.