Commit f48400e4b2c4c28cff20c7eea74e17248b5dc877

Authored by Leandro Santos
2 parents 3fd2e350 a21569c4

Merge branch 'api' into stable

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,6 +8,10 @@ module Noosfero
8 8
9 class Image < Entity 9 class Image < Entity
10 root 'images', 'image' 10 root 'images', 'image'
  11 +
  12 + expose :url do |image, options|
  13 + image.public_filename
  14 + end
11 15
12 expose :icon_url do |image, options| 16 expose :icon_url do |image, options|
13 image.public_filename(:icon) 17 image.public_filename(:icon)