From 9698348290b7cdf762eecc6d3d365657e2930f14 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Fri, 24 Jan 2014 08:36:00 -0800 Subject: [PATCH] Always accept properties and info as serialized attributes. refs #1944 refs #1987 --- services/api/app/controllers/application_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb index a11a75fa9b..62ed762a41 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -339,6 +339,8 @@ class ApplicationController < ActionController::Base def self.accept_attribute_as_json(attr, force_class=nil) before_filter lambda { accept_attribute_as_json attr, force_class } end + accept_attribute_as_json :properties, Hash + accept_attribute_as_json :info, Hash def accept_attribute_as_json(attr, force_class) if params[resource_name] and resource_attrs.is_a? Hash if resource_attrs[attr].is_a? String -- 2.30.2