[Git][noosfero/noosfero][master] api: expose accept/reject attributes from task

Victor Costa gitlab at mg.gitlab.com
Thu Jul 21 18:27:34 BRT 2016


Victor Costa pushed to branch master at Noosfero / noosfero


Commits:
53a2c9a9 by Victor Costa at 2016-07-21T18:27:12-03:00
api: expose accept/reject attributes from task

- - - - -


1 changed file:

- app/api/entities.rb


Changes:

=====================================
app/api/entities.rb
=====================================
--- a/app/api/entities.rb
+++ b/app/api/entities.rb
@@ -267,6 +267,10 @@ module Api
       expose :status
       expose :created_at
       expose :data
+      expose :accept_details
+      expose :reject_details
+      expose :accept_disabled?, as: :accept_disabled
+      expose :reject_disabled?, as: :reject_disabled
       expose :target do |task, options|
         type_map = {Profile => ::Profile, Environment => ::Environment}.find {|h| task.target.kind_of?(h.last)}
         type_map.first.represent(task.target) unless type_map.nil?



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/53a2c9a985c6d4b95fee42c8a462dae3bb67de89
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160721/0fb1c753/attachment.html>


More information about the Noosfero-dev mailing list