]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Relation Tag testing. Also sort the belong_to/has_many for user/changeset/old_way.
[rails.git] / app / models / user.rb
index 80faf68e9137c7ba60d2f75ef6073ed2f598e7d3..ecf41fd18fb827d4f56aee783416db627205f5f5 100644 (file)
@@ -9,6 +9,7 @@ class User < ActiveRecord::Base
   has_many :friends, :include => :befriendee, :conditions => ["users.visible = ?", true]
   has_many :tokens, :class_name => "UserToken"
   has_many :preferences, :class_name => "UserPreference"
+  has_many :changesets
 
   validates_presence_of :email, :display_name
   validates_confirmation_of :email, :message => 'Email addresses must match'