clark_kent 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/clark_kent/user_report_email.rb +1 -1
- data/lib/clark_kent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ad8805f3cc8efb6d5594d7ce6d7eec6943f41e89a80b426d538da4951d23477
|
4
|
+
data.tar.gz: eeaefebc80c3c6e3bc7503250a9423608673ec47dd2794e961c27f1d059d1c63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f0f08a06943d94df1541c19a289b948dac45e3261ac7daa1f394d975472149dbf13b54d1437563b5058b9c625ad57277c041804ea2d2f1ca22a1d061b9f48aa
|
7
|
+
data.tar.gz: e7e9d27ec635b86ac8e644641385a19dbd08b22bc19476854713859fd2f515c28b443339c26a5cb75f1bf1c4e6c8a36101364d1636091c3e43a74a5f6bf7c960
|
@@ -8,7 +8,7 @@ module ClarkKent
|
|
8
8
|
validates_with UserEmailValidator
|
9
9
|
|
10
10
|
def email=(address)
|
11
|
-
self.user = ClarkKent.user_class.where("lower(#{ClarkKent.user_class_name.underscore.pluralize}.email) = lower(:email)",email: address).first
|
11
|
+
self.user = ClarkKent.user_class.where("lower(#{ClarkKent.user_class_name.underscore.pluralize.gsub(/\//,'')}.email) = lower(:email)",email: address).first
|
12
12
|
self.errors.add(:email, "Couldn't find a user with that email addres") unless self.user.present?
|
13
13
|
end
|
14
14
|
|
data/lib/clark_kent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clark_kent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|