default order for tags to be sorted by name

This commit is contained in:
Maxwell Salzberg 2011-10-05 14:00:28 -07:00
parent fd8476fe9c
commit 59e0658497

View file

@ -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