Reinstate stripping of Re: prefixes that Steve dropped...
This commit is contained in:
parent
feb47bc739
commit
210e26f40e
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class MessageController < ApplicationController
|
||||||
def reply
|
def reply
|
||||||
message = Message.find(params[:message_id], :conditions => ["to_user_id = ? or from_user_id = ?", @user.id, @user.id ])
|
message = Message.find(params[:message_id], :conditions => ["to_user_id = ? or from_user_id = ?", @user.id, @user.id ])
|
||||||
@body = "\n\nOn #{message.sent_on} #{message.sender.display_name} wrote:\n #{message.body}"
|
@body = "\n\nOn #{message.sent_on} #{message.sender.display_name} wrote:\n #{message.body}"
|
||||||
@title = "Re: #{message.title}"
|
@title = "Re: #{message.title.sub(/^Re:\s*/, '')}"
|
||||||
@user_id = message.from_user_id
|
@user_id = message.from_user_id
|
||||||
render :action => 'new'
|
render :action => 'new'
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue