Show the latest changeset for each of the contacts on the user page
This commit is contained in:
parent
6d51e77880
commit
33a039e849
3 changed files with 17 additions and 2 deletions
|
@ -10,7 +10,7 @@ class User < ActiveRecord::Base
|
|||
has_many :friends, :include => :befriendee, :conditions => "users.status IN ('active', 'confirmed')"
|
||||
has_many :tokens, :class_name => "UserToken"
|
||||
has_many :preferences, :class_name => "UserPreference"
|
||||
has_many :changesets
|
||||
has_many :changesets, :order => 'created_at DESC'
|
||||
|
||||
has_many :client_applications
|
||||
has_many :oauth_tokens, :class_name => "OauthToken", :order => "authorized_at desc", :include => [:client_application]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue