summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-22 18:41:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-22 18:41:03 +0000
commit498a34403ad3f15dee2067e9d8998675255010ce (patch)
tree4157bab01de3ac07d5d076cc3eeb988df1d2a993 /app/models/message.rb
parent0fc1906201be897fb1d7b1424cd3955f0e224eb4 (diff)
downloadredmine-498a34403ad3f15dee2067e9d8998675255010ce.tar.gz
redmine-498a34403ad3f15dee2067e9d8998675255010ce.zip
Removed unneeded :foreign_key option on belongs_to associations.
git-svn-id: http://svn.redmine.org/redmine/trunk@13484 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/message.rb b/app/models/message.rb
index 028a3eb55..a5540d953 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -18,10 +18,10 @@
class Message < ActiveRecord::Base
include Redmine::SafeAttributes
belongs_to :board
- belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
+ belongs_to :author, :class_name => 'User'
acts_as_tree :counter_cache => :replies_count, :order => "#{Message.table_name}.created_on ASC"
acts_as_attachable
- belongs_to :last_reply, :class_name => 'Message', :foreign_key => 'last_reply_id'
+ belongs_to :last_reply, :class_name => 'Message'
attr_protected :id
acts_as_searchable :columns => ['subject', 'content'],