ishapi 0.1.8.180 → 0.1.8.181

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
  SHA256:
3
- metadata.gz: bc1fab799950f80dc60e96c14da20e2b819597bb6ba08a7202faa265f8da9b1c
4
- data.tar.gz: 60a76c0bcc2df49cf116fcec8d9889710290c8811c0c8922ffbaff5b85063a6f
3
+ metadata.gz: 7ef65cf53c1c9ed63d5118cba183a30c1958a00c5a7e45d23fc15e32605782f4
4
+ data.tar.gz: 3be58b188615387a0ed57107bb1ba3378327838bb4ec48f012ead15ca0cc8dab
5
5
  SHA512:
6
- metadata.gz: 2d9949936dca45d8377c8331083f2fa6badc2dcc73e424f2130957f60b688368b06bebaf533198d2c08020ec4d5b865b844488c12e3c49fff6922a589f554673
7
- data.tar.gz: '024685ff64b145e92763772af8fd3da14bd994dd329f6808799b484808949753c3216f0267db1607231eefb50430068154615213bdbfbb98b0bbbb54ff449460'
6
+ metadata.gz: 292432e6e0f2d4410b0440d849a7cea5409bc52cc8cb03e2f30befdb80de9296a8b560e70ae22368aa55c50a8e3007d42698920d607fd88e451977e98a41b26a
7
+ data.tar.gz: 015ca8524e54cee60bae0bfac3afe86c092856cd3028091963a2b4e3eab9ddb6e128025512762f35419aaed2e47ce2fdbf059c9c0e597e1278610492fcce3bb7
@@ -5,8 +5,7 @@ class Ishapi::MapsController < Ishapi::ApplicationController
5
5
  before_action :check_profile, only: [ :show ]
6
6
 
7
7
  def show
8
- @location = ::Gameui::Map.where( slug: params[:slug] ).first
9
- @location ||= ::Gameui::Map.find params[:slug]
8
+ @location = ::Gameui::Map.find_by slug: params[:slug]
10
9
  @map = @location.map || @location
11
10
 
12
11
  authorize! :show, @map
@@ -16,6 +16,7 @@ json.markers do
16
16
  json.title_img_path marker.title_image ? marker.title_image.image.url(:thumb) : image_missing
17
17
  json.item_type marker.item_type
18
18
  json.url marker.url
19
+ json.asset3d_path marker.asset3d ? marker.asset3d.object.url : ''
19
20
 
20
21
  ## @TODO: this is copy-pasted and should be abstracted.
21
22
  destination = marker.destination
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.180
4
+ version: 0.1.8.181
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-11 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails