[Git][noosfero/noosfero][master] expose filename image attribute in api

Leandro Nunes gitlab at mg.gitlab.com
Mon Sep 12 18:33:43 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
2b82eb65 by Leandro Nunes dos Santos at 2016-09-12T18:33:28-03:00
expose filename image attribute in api

- - - - -


1 changed file:

- app/api/entities.rb


Changes:

=====================================
app/api/entities.rb
=====================================
--- a/app/api/entities.rb
+++ b/app/api/entities.rb
@@ -48,6 +48,7 @@ module Api
     class Image < Entity
       root 'images', 'image'
 
+      expose :filename
       expose  :url do |image, options|
         image.public_filename
       end



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/2b82eb65d0a0cdcae965f7f47bb2f45cf1d87a3a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160912/7976eb44/attachment.html>


More information about the Noosfero-dev mailing list