Allow resource kind objects to bypass the serializer data structuring (statistics service objects (panda))
This commit is contained in:
@@ -211,6 +211,7 @@ module Dunlop::Ember::ApiBaseController
|
|||||||
end
|
end
|
||||||
return resource.to_json if resource.is_a?(Hash)
|
return resource.to_json if resource.is_a?(Hash)
|
||||||
return resource if resource.is_a?(String)
|
return resource if resource.is_a?(String)
|
||||||
|
return resource.to_json if resource.try(:custom_data?)
|
||||||
|
|
||||||
action_serialize_options_method = :"#{action_name}_serialize_options"
|
action_serialize_options_method = :"#{action_name}_serialize_options"
|
||||||
#action_serialize_options = respond_to?(action_serialize_options_method) ? __send__(action_serialize_options_method) : {}
|
#action_serialize_options = respond_to?(action_serialize_options_method) ? __send__(action_serialize_options_method) : {}
|
||||||
|
|||||||
Reference in New Issue
Block a user