Sha256: 8ff1e542fac09f981b9a483bc57de74ec061b2d0868d191989a90bfab243f43d

Contents?: true

Size: 307 Bytes

Versions: 29

Compression:

Stored size: 307 Bytes

Contents

#
# ishapi / cities / index
#

key = [ ::IshModels::CacheKey.one.cities ]
json.cache! key do
  json.array! @cities do |city|
    json.id city.id.to_s
    json.name city.name
    json.cityname city.cityname
    if city.profile_photo
      json.photo city.profile_photo.photo.url( :thumb )
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ishapi-0.1.8.45 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.44 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.43 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.42 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.41 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.40 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.39 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.38 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.37 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.36 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.35 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.34 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.33 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.32 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.31 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.30 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.29 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.28 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.27 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.26 app/views/ishapi/cities/index.jbuilder