diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-23 17:02:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-23 17:02:10 +0000 |
commit | a2a01e6b72d81ad9b2c50bccc8f9d4d13d1c5a8a (patch) | |
tree | b10541d97eb305a61707a9f9ce9341d963648065 /app/helpers/messages_helper.rb | |
parent | b20210e83c42807e6445b827504afe64323e272d (diff) | |
download | redmine-a2a01e6b72d81ad9b2c50bccc8f9d4d13d1c5a8a.tar.gz redmine-a2a01e6b72d81ad9b2c50bccc8f9d4d13d1c5a8a.zip |
Moves link_to_message to ApplicationHelper to make it available to redmine links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4760 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/messages_helper.rb')
-rw-r--r-- | app/helpers/messages_helper.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/messages_helper.rb b/app/helpers/messages_helper.rb index ed58ad796..ce118b4f9 100644 --- a/app/helpers/messages_helper.rb +++ b/app/helpers/messages_helper.rb @@ -16,14 +16,4 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. module MessagesHelper - - def link_to_message(message) - return '' unless message - link_to h(truncate(message.subject, :length => 60)), :controller => 'messages', - :action => 'show', - :board_id => message.board_id, - :id => message.root, - :r => (message.parent_id && message.id), - :anchor => (message.parent_id ? "message-#{message.id}" : nil) - end end |