friendly_routes 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: dcb9fa885ae589f1d6eff1fd16318d19d782e109
4
- data.tar.gz: f42c5ac91c33aebed0143064957a8153baa9420c
3
+ metadata.gz: 4b0701ba389222b813a94de3a1f22bb73652e726
4
+ data.tar.gz: a397fbc59abcc1e2d5b19adf5fed7c33fa5a297e
5
5
  SHA512:
6
- metadata.gz: aadefafcb576ce5a8e8fe8670623503554496f6d731fc75e4a0af9f952f70afd33f16d899aa0bd2082cd46ba6d7b890dbc3e97f8c44239d3414ce37eab7f6bd1
7
- data.tar.gz: 084a4ec740ea9d9c5db2a5db057aa373faa08bf2946b3f29a37f9b81d1cc0249fc364bf1ede817247eecb6e22725ea7a7e62377ace9d7bf990e027c86b7bf14e
6
+ metadata.gz: 9569f305641df06ec409bd9d8c0ef8c5e19603b25e067ff49d4e403b4834ae35ea1507cbc0a0ff0f160674fa57f7e2f8cfe7632096ed714478eaf601229dc844
7
+ data.tar.gz: 71b8bd62337294915fa247e9c6fe5ca431b368e9bd9dc554720f48e41a7934b0a30865b5218e73f02d88e613facedb840035db313f1fc2ae7eb3c4f008b93e63
@@ -38,7 +38,7 @@ module FriendlyRoutes
38
38
  # @param [Integer] id id of collection member
39
39
  # @return [Boolean]
40
40
  def allowed?(id)
41
- @collection.exists?(id)
41
+ @collection.where(id: id).count > 0
42
42
  end
43
43
 
44
44
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyRoutes
4
- VERSION = '0.4.3'
4
+ VERSION = '0.4.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Gritsay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails