[Git][noosfero/noosfero][master] 2 commits: Return correct parameters

Victor Costa gitlab at mg.gitlab.com
Wed Mar 15 10:08:04 BRT 2017


Victor Costa pushed to branch master at Noosfero / noosfero


Commits:
baa12e84 by Evandro Junior at 2017-03-14T11:43:21-03:00
Return correct parameters

- - - - -
e2ac6534 by Victor Costa at 2017-03-15T13:07:58+00:00
Merge branch 'fix_delete_article_api' into 'master'

Return correct parameters

See merge request !1135
- - - - -


1 changed file:

- app/api/v1/articles.rb


Changes:

=====================================
app/api/v1/articles.rb
=====================================
--- a/app/api/v1/articles.rb
+++ b/app/api/v1/articles.rb
@@ -59,7 +59,7 @@ module Api
           return forbidden! unless article.allow_delete?(current_person)
           begin
             article.destroy
-            { success: true }
+            present({success: true})
           rescue Exception => exception
             render_api_error!(_('The article couldn\'t be removed due to some problem. Please contact the administrator.'), Api::Status::BAD_REQUEST)
           end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e4a01743981277008a21ddba41bffe5875c89ea5...e2ac6534e22b7e5f72a885b12e777aa4ba427066
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170315/4afa2ef5/attachment.html>


More information about the Noosfero-dev mailing list