default order for tags to be sorted by name
This commit is contained in:
parent
fd8476fe9c
commit
59e0658497
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class User < ActiveRecord::Base
|
|||
has_many :services, :dependent => :destroy
|
||||
has_many :user_preferences, :dependent => :destroy
|
||||
has_many :tag_followings, :dependent => :destroy
|
||||
has_many :followed_tags, :through => :tag_followings, :source => :tag
|
||||
has_many :followed_tags, :through => :tag_followings, :source => :tag, :order => 'tags.name'
|
||||
|
||||
has_many :authorizations, :class_name => 'OAuth2::Provider::Models::ActiveRecord::Authorization', :foreign_key => :resource_owner_id
|
||||
has_many :applications, :through => :authorizations, :source => :client
|
||||
|
|
|
|||
Loading…
Reference in a new issue