aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorangie <angie>2008-04-24 22:50:03 +0000
committerangie <angie>2008-04-24 22:50:03 +0000
commitab28b4652dd246f2ec59285f1521e896f2b6f2f7 (patch)
tree4a87ba7594310245b6889ab5281a5f4616265346 /app/models
parent10dbed55e951113fca961785423c418272d7b747 (diff)
many design things
Diffstat (limited to 'app/models')
-rw-r--r--app/models/info_request_event.rb3
-rw-r--r--app/models/outgoing_message.rb11
2 files changed, 10 insertions, 4 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb
index 60253df3b..e8e1ecaa5 100644
--- a/app/models/info_request_event.rb
+++ b/app/models/info_request_event.rb
@@ -20,7 +20,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: info_request_event.rb,v 1.38 2008-04-21 16:44:06 francis Exp $
+# $Id: info_request_event.rb,v 1.39 2008-04-24 22:50:03 angie Exp $
class InfoRequestEvent < ActiveRecord::Base
belongs_to :info_request
@@ -184,7 +184,6 @@ class InfoRequestEvent < ActiveRecord::Base
end
end
-
end
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb
index 28aa0a754..189ff77d2 100644
--- a/app/models/outgoing_message.rb
+++ b/app/models/outgoing_message.rb
@@ -21,7 +21,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: outgoing_message.rb,v 1.43 2008-04-21 16:44:06 francis Exp $
+# $Id: outgoing_message.rb,v 1.44 2008-04-24 22:50:03 angie Exp $
class OutgoingMessage < ActiveRecord::Base
belongs_to :info_request
@@ -133,9 +133,16 @@ class OutgoingMessage < ActiveRecord::Base
text = self.body
text = MySociety::Format.make_clickable(text, :contract => 1)
text = text.gsub(/\n/, '<br>')
-
return text
end
+
+ def get_body_for_neat_html_display
+ text = self.body
+ text = MySociety::Format.make_clickable(text, :contract => 1)
+ text = text.gsub(/\n\n/, '<br>')
+ return text
+ end
+
# Return body for display as HTML
# XXX this is repeating code in a combination of