Commit 757ced87dfe9b73ef9e209c49f6c9ec669f35791

Authored by Leandro Santos
1 parent 6ac895f1

expose full image path

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
lib/noosfero/api/entities.rb
... ... @@ -8,6 +8,10 @@ module Noosfero
8 8  
9 9 class Image < Entity
10 10 root 'images', 'image'
  11 +
  12 + expose :url do |image, options|
  13 + image.public_filename
  14 + end
11 15  
12 16 expose :icon_url do |image, options|
13 17 image.public_filename(:icon)
... ...