Sha256: 61241c0053a486a2d1e0f30b426ce3dfbcc3f37ea8cffd37d62691f5770916c2

Contents?: true

Size: 367 Bytes

Versions: 21

Compression:

Stored size: 367 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
    json.x        city.x
    json.y        city.y
    if city.profile_photo
      json.photo city.profile_photo.photo.url( :thumb )
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ishapi-0.1.8.68 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.67 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.66 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.65 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.64 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.63 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.62 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.61 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.60 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.59 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.58 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.57 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.56 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.55 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.54 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.53 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.52 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.49 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.48 app/views/ishapi/cities/index.jbuilder
ishapi-0.1.8.47 app/views/ishapi/cities/index.jbuilder