userlist-rails 0.5.1 → 0.5.2

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: c4361f8f73c39543b0250633d22c4d758ac4b43cb073d160bce946ac14390c39
4
- data.tar.gz: 59e21c2a6579d36c4b50545f858dbb30c1a63e9e1dc7de69dacfbf87201707cf
3
+ metadata.gz: fd328b85183c1e6430b5ef04430013ee500423e66c718dc54a8d99ccf2ba4cd1
4
+ data.tar.gz: 999ea8bc4c41b5cb639549643581a120ba06bc478a244a7f18684c872c5fac48
5
5
  SHA512:
6
- metadata.gz: 776f506a31ac8db648d2e8fb6ccdf846abba9fe4d8c04f4b6b0143ebd5a6711719b6c627a7191016d529ed76c3c8ab880da797823d85b6846e767a89ff473e68
7
- data.tar.gz: 1984ab2272f68b9b6dddea36cac787ec1bd278da08630b4c168fd25a3aa6fca1fead8936415f28d80c58532cc866cc9b1ea13512ad4cb4c5a202bcf84c598f11
6
+ metadata.gz: fb0d71e9642e497dc7caf483bd3897e1ca0ff40ca5de49698cd7e0303022a9f24f6345be3dc36838caa7a91b11d5fe7f9c5e651edab1b875d4c43ddf1e5de7f3
7
+ data.tar.gz: 85831d7572e922daf7d2a5f80c458569d54fb00969f846a0eb5921f9ee68b3de4ac3b423988dfb1c1ae5cbe86f912f7385daf1d54d7b14d161d1108ca11cdc19
@@ -36,7 +36,9 @@ module Userlist
36
36
  def self.detect_model(*names)
37
37
  names.each do |name|
38
38
  begin
39
- return name.constantize
39
+ model = name.constantize
40
+
41
+ return model if model.is_a?(Class)
40
42
  rescue NameError
41
43
  false
42
44
  end
@@ -1,5 +1,5 @@
1
1
  module Userlist
2
2
  module Rails
3
- VERSION = '0.5.1'.freeze
3
+ VERSION = '0.5.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userlist-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benedikt Deicke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-22 00:00:00.000000000 Z
11
+ date: 2021-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport