aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-21 17:24:13 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-21 17:24:13 +1100
commitb3d3fecdfe3588d842174ff3921e748864a85114 (patch)
tree2892337207490b60762662699a680b367411ed32 /app/models/info_request.rb
parent3b15df97402411078fd3e4222573e5fefbae9099 (diff)
Under Ruby 1.9 this saved to the DB as a Ruby ActiveSupport::SafeBuffer object but we want it saved as a String
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 375d972a3..42efa4484 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -473,7 +473,7 @@ public
self.awaiting_description = true
params = { :incoming_message_id => incoming_message.id }
if !rejected_reason.empty?
- params[:rejected_reason] = rejected_reason
+ params[:rejected_reason] = rejected_reason.to_str
end
self.log_event("response", params)
self.save!