Skip to content

Commit

Permalink
adjust email attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
devton committed Apr 3, 2012
1 parent b6ff786 commit ce48a2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ class User < ActiveRecord::Base
<<-SQL
users.id,
users.name,
users.email,
count(backers.id) as count_backs
SQL
).
where("backers.confirmed is true").
order("count_backs desc").
group("users.name, users.id")
group("users.name, users.id, users.email")
}
#before_save :store_primary_user

Expand Down

0 comments on commit ce48a2c

Please sign in to comment.