diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-07 15:49:32 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-07 15:49:32 +0100 |
commit | cc5dd55a9bd55dbba4dd239d3334493bae2cb3bf (patch) | |
tree | 7903ede99984d149d2fa343877e4fc1670a41b22 /app/models/info_request_event.rb | |
parent | da95c03f9f224ded9e0e3bda2635bcf4f63faf5d (diff) | |
parent | f75b1de52432018c19d9fce04b1127ab114df0ea (diff) |
Merge branch 'version-dependent-caching' into rails-3-develop
Diffstat (limited to 'app/models/info_request_event.rb')
-rw-r--r-- | app/models/info_request_event.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index 635ba8f58..0ee82d30c 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -278,9 +278,15 @@ class InfoRequestEvent < ActiveRecord::Base end self.params_yaml = params.to_yaml end + def params - YAML.load(self.params_yaml) + param_hash = YAML.load(params_yaml) + param_hash.each do |key, value| + param_hash[key] = value.force_encoding('UTF-8') if value.respond_to?(:force_encoding) + end + param_hash end + def params_yaml_as_html ret = '' # split out parameters into old/new diffs, and other ones |