layers_of_london-booth-map_tool 0.1.0 → 0.1.1

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: 4bbeea5f42038550cf62efac5468d07c55f28ebdf220f987226c4d041fc0f355
4
- data.tar.gz: 2e02436558ab2f62947d71e4ff6e3762ce74794c207a3be1fd898829c55a3d79
3
+ metadata.gz: 2daab147177435f92cebb04bf6ee9257116a48411ebf1b3820ec5989d98286c0
4
+ data.tar.gz: 7d52d522f8dee4ca6cd10d119cc67a5fbe207015cdb51273164427c74cd0a968
5
5
  SHA512:
6
- metadata.gz: cbfe69468ce35c0ed5f6ec410cdea55c133dc258c146d0b23bf480ca5bcf2e7b4e3e25dff26affabf152c312912c7f8df59763549cfa3efd1266b76ea8a7c371
7
- data.tar.gz: 0d12105e710d5e48c03a2e3d85af14749b6e10754dc8f0e7d293a809dcaa49e7278beba678deba15e968c10fe9af411b75a137d84eb88a1153f837978a29ec3a
6
+ metadata.gz: 883e534dbd5892c982543b44a1d5e8d5b2d680cfc20a60e22f1e3e0de22c838f021663af45eb81b9fe3ff2b0a743034c8a06ec0ed2b0bfba7dd9a5780285e264
7
+ data.tar.gz: 3484e6d0cca603529db010aab0a222f30f5dceb95bc8c6b0e0fe1ce60dbf7b9c10d5671e2fae5f53afe12963c05c487135a66baf4eba4a4751e010db35f2aece
@@ -5,7 +5,7 @@ module LayersOfLondon::Booth::MapTool
5
5
  end
6
6
 
7
7
  def update?
8
- record.user.id === user.try(:id) && record.square.editable?
8
+ user.present? && record.user.try(:id) === user.try(:id) && record.square.editable?
9
9
  end
10
10
 
11
11
  def destroy?
@@ -1,7 +1,7 @@
1
1
  module LayersOfLondon
2
2
  module Booth
3
3
  module MapTool
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: layers_of_london-booth-map_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Hendrick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-13 00:00:00.000000000 Z
11
+ date: 2019-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails