ishapi 0.1.8.178 → 0.1.8.180

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: 624ac9590f37f623390c3d985f6cdef76ce0ac93b4f35d7c9e3556412a27f75e
4
- data.tar.gz: 8bc5cbd36d9b8cfbcb5af703841ad320787157e82ad9a7da47bba609eb674d35
3
+ metadata.gz: bc1fab799950f80dc60e96c14da20e2b819597bb6ba08a7202faa265f8da9b1c
4
+ data.tar.gz: 60a76c0bcc2df49cf116fcec8d9889710290c8811c0c8922ffbaff5b85063a6f
5
5
  SHA512:
6
- metadata.gz: c606ff431e7cbf34b57f303c111cb479ef420f7b9527c4290f51ad0dccb8e4a6e9e17df4725b28efc673bb445c2755040d07fcd5aac90da8b7597cdc203d1317
7
- data.tar.gz: 2e6980d59dc035a5ad4e4928388f17feb5d02b6f70b240ec5818f2c9e1a20151a26f34cf9b12a8bcd28c5f30023ad5d8d479cd77b46acf79513e64f3d8d92cbc
6
+ metadata.gz: 2d9949936dca45d8377c8331083f2fa6badc2dcc73e424f2130957f60b688368b06bebaf533198d2c08020ec4d5b865b844488c12e3c49fff6922a589f554673
7
+ data.tar.gz: '024685ff64b145e92763772af8fd3da14bd994dd329f6808799b484808949753c3216f0267db1607231eefb50430068154615213bdbfbb98b0bbbb54ff449460'
@@ -5,7 +5,8 @@ class Ishapi::MapsController < Ishapi::ApplicationController
5
5
  before_action :check_profile, only: [ :show ]
6
6
 
7
7
  def show
8
- @location = ::Gameui::Map.find_by slug: params[:slug]
8
+ @location = ::Gameui::Map.where( slug: params[:slug] ).first
9
+ @location ||= ::Gameui::Map.find params[:slug]
9
10
  @map = @location.map || @location
10
11
 
11
12
  authorize! :show, @map
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.178
4
+ version: 0.1.8.180
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-20 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails