diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-26 19:04:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-26 19:04:58 +0000 |
commit | 0fd9b102be7dec664c8df1ddb802fac9ba8cea79 (patch) | |
tree | bf9d2e86ecc5d2ad686a961f8960d5d5f0499dea | |
parent | b3939fb134c38c310e0f031ad445035db70ca2a0 (diff) | |
download | redmine-0fd9b102be7dec664c8df1ddb802fac9ba8cea79.tar.gz redmine-0fd9b102be7dec664c8df1ddb802fac9ba8cea79.zip |
Adds anchor to atom feed messages links.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1588 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/message.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb index f57b90985..888bffcc3 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -29,7 +29,8 @@ class Message < ActiveRecord::Base acts_as_event :title => Proc.new {|o| "#{o.board.name}: #{o.subject}"}, :description => :content, :type => Proc.new {|o| o.parent_id.nil? ? 'message' : 'reply'}, - :url => Proc.new {|o| {:controller => 'messages', :action => 'show', :board_id => o.board_id, :id => o.id}} + :url => Proc.new {|o| {:controller => 'messages', :action => 'show', :board_id => o.board_id}.merge(o.parent_id.nil? ? {:id => o.id} : + {:id => o.parent_id, :anchor => "message-#{o.id}"})} attr_protected :locked, :sticky validates_presence_of :subject, :content |