softwear-lib 1.7.10 → 1.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softwear/lib/controller_authentication.rb +5 -1
- data/lib/softwear/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 428b489cc6521ad57f942c576f0c6f3188119f7d
|
4
|
+
data.tar.gz: 9dc199b32ebe21eb5d76c10fc0a67dce84731b12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7e4ddea490abe5e214ff9bc8a18e5e42f3e76e13849b2450b4c8f785c1cabb59ac9c59c060744abfabed5014493a7e16fd9aca53510d489ac86d15ce8f0ef76
|
7
|
+
data.tar.gz: fec8a47b63943cc0681e33fe92e49fd8633b23d81f5c2265166d8c44e5cf461e5f2743b0ab983d0318f90bfb728c4d73f1f1d85363478b061f657e12c5524e10
|
@@ -24,7 +24,11 @@ module Softwear
|
|
24
24
|
raise "More than one descendent of Softwear::Auth::Model is not supported."
|
25
25
|
elsif Softwear::Auth::Model.descendants.size == 0
|
26
26
|
# Assume there is a "User" model
|
27
|
-
|
27
|
+
begin
|
28
|
+
User.inspect
|
29
|
+
return User if User.ancestors.include?(Softwear::Auth::Model)
|
30
|
+
rescue NameError => _
|
31
|
+
end
|
28
32
|
raise "Please define a user model that extends Softwear::Auth::Model."
|
29
33
|
end
|
30
34
|
Softwear::Auth::Model.descendants.first
|
data/lib/softwear/lib/version.rb
CHANGED