X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ce77006fad5205dc85206d5841657967c6f16c3..c9d35839befe92d916425baa4daec7dd77ade929:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index a95724c96..0053333e2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -12,7 +12,7 @@ class User < ActiveRecord::Base has_many :tokens, :class_name => "UserToken" has_many :preferences, :class_name => "UserPreference" has_many :changesets, -> { order(:created_at => :desc) } - has_many :changeset_comments, :foreign_key => :author_id + has_many :changeset_comments, :foreign_key => :author_id has_and_belongs_to_many :changeset_subscriptions, :class_name => "Changeset", :join_table => "changesets_subscribers", :foreign_key => "subscriber_id" has_many :note_comments, :foreign_key => :author_id has_many :notes, :through => :note_comments