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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a055862b32f99723985e08f5f89b5919d4e606189db5ad144757d44f3ac3ac71
4
- data.tar.gz: f1fe3d727f9d676af14d69ce17eef0ffb3b1a6273693af9671e739fbfa6ef88a
3
+ metadata.gz: 3ad8805f3cc8efb6d5594d7ce6d7eec6943f41e89a80b426d538da4951d23477
4
+ data.tar.gz: eeaefebc80c3c6e3bc7503250a9423608673ec47dd2794e961c27f1d059d1c63
5
5
  SHA512:
6
- metadata.gz: f813d2aabea50e64e02066d88b1a25751423d9f2560d45f2770d79710b6a4a1b5847e83db242bbff74b42a1b37758ac7cb27282e0ba31abce52da7bfc0911132
7
- data.tar.gz: 184f74656189d0757d33b2b21ebe89bffa03985d2f54ebf209eea57585c226fb8f4f93c6e9da6dd9ccef586cc4fd236e42b9ceff8746989a1869a705db3f7e19
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
 
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2019-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails