Commit 2b82eb65d0a0cdcae965f7f47bb2f45cf1d87a3a

Authored by Leandro Santos
1 parent 9131021b
Exists in staging

expose filename image attribute in api

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/api/entities.rb
... ... @@ -48,6 +48,7 @@ module Api
48 48 class Image < Entity
49 49 root 'images', 'image'
50 50  
  51 + expose :filename
51 52 expose :url do |image, options|
52 53 image.public_filename
53 54 end
... ...