credentials 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +4 -0
- data/VERSION +1 -1
- data/credentials.gemspec +1 -1
- data/lib/credentials/rulebook.rb +4 -4
- metadata +1 -1
data/HISTORY
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.1
|
data/credentials.gemspec
CHANGED
data/lib/credentials/rulebook.rb
CHANGED
@@ -18,11 +18,11 @@ module Credentials
|
|
18
18
|
}.freeze
|
19
19
|
|
20
20
|
def initialize(klass)
|
21
|
-
|
22
|
-
|
23
|
-
$1.constantize
|
21
|
+
if klass.to_s =~ /^#<Class:#<([\w_]+(?:\:\:[\w_]+)*)/ # there must be a better way
|
22
|
+
self.klass = superklass = $1.constantize
|
24
23
|
else
|
25
|
-
klass
|
24
|
+
self.klass = klass
|
25
|
+
superklass = klass.superclass
|
26
26
|
end
|
27
27
|
|
28
28
|
@rules = []
|