Skip to content

Commit

Permalink
updated db query on contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Jun 4, 2011
1 parent 564444a commit 68f83e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def index
@totalcontacts = Contact.count(:conditions => ['profile_id = ?', @u.id])

# @totalconfirmed = current_user.contacts.count("confirmed")
@totalconfirmed = Contact.count(:conditions => ['confirmed and (profile_id = ? or callsign = ?)', @u.id, @u.login])
@totalconfirmed = Contact.count(:conditions => ['confirmed AND (profile_id = ? OR callsign = ?)', @u.id, @u.login])

# @contacts = current_user.contacts.paginate(:order => 'contacttime DESC',
# :per_page => 10,
Expand Down

0 comments on commit 68f83e9

Please sign in to comment.