From: Michal Fojtik <[email protected]>
Signed-off-by: Michal fojtik <[email protected]> --- server/lib/cimi/helpers/cimi_helper.rb | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/server/lib/cimi/helpers/cimi_helper.rb b/server/lib/cimi/helpers/cimi_helper.rb index b55ac3b..f67460b 100644 --- a/server/lib/cimi/helpers/cimi_helper.rb +++ b/server/lib/cimi/helpers/cimi_helper.rb @@ -14,8 +14,16 @@ # under the License. module CIMIHelper + + def no_content_with_status(code=200) + body '' + status code + end + end +helpers CIMIHelper + class Array def to_xml_cimi_collection(_self) model_name = first.class.xml_tag_name -- 1.7.4.4
