ishapi 0.1.8.121 → 0.1.8.122

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2453a341a440c8cb3727b7a73ba5146b6d6c01337d367a9544d0527e9e61ee5
4
- data.tar.gz: ac6d01a71082f916f14142805193e826f7f2061771700ccbdd4e0c9bce631d84
3
+ metadata.gz: f847fd6b0d800d9c2c6ab5c9f677b7a9aeffda9793881faeaf1b8b0f87f781c0
4
+ data.tar.gz: 5c9e3e384beab32a5d57523504493291a4d7a25c8e1777ab7b83684529cdb424
5
5
  SHA512:
6
- metadata.gz: 242df957ea7b5653dc9bb5278fa453b3651f1aa467acd6d1215588bc43212305313e605cc7d83c18efa16472a1261a5e9b6ee221a221bcc2ab01a783ca3ca71d
7
- data.tar.gz: 52fe8fc4b4cfc2bea379f42297e7c7dea5828e1adfb4680a008891b9fa699bd2d290705f3b02f67568d00d1180da6c5d6b6597e4784772fff4dd46c0869a6fa7
6
+ metadata.gz: d0a989ce0e9f57e4179e9f46616f1d704f69438d8735de787ab35178280bcd189b46ae7966631834b987f2d48a887d471b9bb0a631a7d336801c64b487f44eb1
7
+ data.tar.gz: 2e2c32d28202811a56266fe89eaf7a5630e8a0fc99cd57080dde128e2bc878269e5634e2732ac99de195c877844cef420e2346855cad97436f33e594065673c7
@@ -9,6 +9,9 @@ if item.city
9
9
  end
10
10
  json.cityname item.city.cityname
11
11
  end
12
- if item.tag
13
- json.tag_name item.tag.name
12
+ if defined?(item.tag) && !item.tag.blank?
13
+ json.partial! 'ishapi/tags/index', tags: [ item.tag ]
14
+ end
15
+ if defined?(item.tags) && !item.tags.blank?
16
+ json.partial! 'ishapi/tags/index', tags: item.tags
14
17
  end
@@ -48,11 +48,8 @@ json.newsitems do
48
48
  json.photo_thumb2_url item.report.photo.photo.url( :thumb2 )
49
49
  end
50
50
 
51
- json.partial! 'ishapi/application/meta', :item => item.report
52
- json.tags [ { slug: 'adventure', name: 'Adventure' },
53
- { slug: 'bars-and-clubs', name: 'Bars & Clubs' },
54
- { slug: 'food', name: 'Food' },
55
- { slug: 'late-night', name: 'Late Night' } ]
51
+ json.partial! 'ishapi/application/meta', :item => item.report
52
+ json.partial! 'ishapi/tags/index', tags: item.report.tags
56
53
 
57
54
  if item.report.is_premium
58
55
  json.premium_tier item.report.premium_tier
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.121
4
+ version: 0.1.8.122
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox