ishapi 0.1.8.44 → 0.1.8.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7262e3d9da02c5bcdd40a2290b63629c8f7fd5d
4
- data.tar.gz: 368081d42c910737dcf9ce09592211f3f4051edc
3
+ metadata.gz: f808ba13fa0285e8a3f2eb76259cbf2b16d2bb33
4
+ data.tar.gz: f2e1255d2f37da9149b1b6d1b19d8680db071a31
5
5
  SHA512:
6
- metadata.gz: b74070f1cef78c5dda3368857b67b6c044572004f34441f688cda6ca9f6da50d1a7ac399c80ce7a2a7efe3b10715094ac7b2291b22516f6ffe2b834c19436372
7
- data.tar.gz: d3ee1cbbbebe9b65e422fb29653aff5d97b60ec3d0b4706f7ce17f6f3fded9a0a1a29f035ee831085a84947463a83e4800f1a4499244457586e37b166e00b821
6
+ metadata.gz: 0ae449188fc10adce921c88fa5109c07b104c006f1f75c00f1631d4b5de467a86749681d0dc21c9415ee213a289c12157acc3c6fd4d38bf4815d375ab000d19f
7
+ data.tar.gz: ea4ee8dfef5ade2c8924e9bda34ffcfffa9b7e87f84d9ec2bc68c6633b107417724154d5c87323ac465b08db7090a250a9d073aca1a44f63fb0ac8997d925ca4
@@ -9,6 +9,7 @@ module Ishapi
9
9
  city = City.find_by :cityname => params[:cityname]
10
10
  @galleries = @galleries.where( :city => city )
11
11
  end
12
+ @galleries = @galleries.page( params[:galleries_page] ).per( 10 )
12
13
  end
13
14
 
14
15
  def show
@@ -7,9 +7,10 @@ json.array! @galleries do |gallery|
7
7
  json.id gallery.id.to_s
8
8
  json.name gallery.name
9
9
  json.galleryname gallery.galleryname
10
- json.username gallery.username
10
+ json.username gallery.user_profile.name
11
11
  json.cityname gallery.city.name if gallery.city
12
12
  json.tagname gallery.tag.name_seo if gallery.tag
13
13
  json.venuename gallery.venue.name if gallery.venue
14
+ json.partial! 'ishapi/photos/index', :photos => gallery.photos
14
15
  end
15
16
 
@@ -9,6 +9,7 @@ json.cache! this_key do
9
9
  json.id @gallery.id.to_s
10
10
  json.name @gallery.name
11
11
  json.galleryname @gallery.galleryname
12
+ json.description @gallery.descr
12
13
  json.partial! 'ishapi/photos/index', :photos => @gallery.photos
13
14
  end
14
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.44
4
+ version: 0.1.8.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails