diff options
author | FOI site testharness <foi-testharness@sandwich.ukcod.org.uk> | 2010-09-09 02:27:35 +0100 |
---|---|---|
committer | FOI site testharness <foi-testharness@sandwich.ukcod.org.uk> | 2010-09-09 02:27:35 +0100 |
commit | 72b7cf54881f4ee88cdd79c54315e8e2cc01d55a (patch) | |
tree | d13cd300a45679a95dda3c0532fe7961fd0a6821 | |
parent | 291d688cb84e1f4a95dca9d814d41a27528415ad (diff) |
Remove surplus :s (for Ruby 1.9)
-rw-r--r-- | app/models/info_request.rb | 2 | ||||
-rw-r--r-- | app/models/info_request_event.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 10deab25a..5a422c79a 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -939,7 +939,7 @@ public max_id = InfoRequest.connection.select_value('select max(id) as a from info_requests').to_i info_request = nil count = 0 - while info_request.nil?: + while info_request.nil? if count > 100 return nil end diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index b666b3cf2..576379096 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -250,7 +250,7 @@ class InfoRequestEvent < ActiveRecord::Base for key, value in new_params old_value = old_params[key].to_s new_value = new_params[key].to_s - if old_value != new_value: + if old_value != new_value ret = ret + "<em>" + CGI.escapeHTML(key) + ":</em> " ret = ret + CGI.escapeHTML(MySociety::Format.wrap_email_body_by_lines(old_value).strip).gsub(/\n/, '<br>') + |