ae_users_legacy 0.6.13 → 0.6.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ae_users_legacy.gemspec +1 -1
- data/app/models/person.rb +1 -4
- metadata +2 -3
- data/VERSION +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f68fd9ce49b7b0dd5fdf462efcd5fd108e9558
|
4
|
+
data.tar.gz: a8463f727d8acc6a1cdf5509446b73528a404b16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 006beade67a7d19cac2c7a43c6c464ac8dc99a28373ed37833ea27f764da5c141ba63914bd229b36c31a778ae158f2fab66d9fad41d75ef99c1cc3fcda8bf88e
|
7
|
+
data.tar.gz: 36aa00e1f3e3ac4a43f9894ddfacf0af38d5cbe4ef896e5bb8b706c2efa6baced89499a78e14f50e13b1e1bac19e23e3275dc45dbb1e5c0a45b07256f43a2b1b
|
data/ae_users_legacy.gemspec
CHANGED
data/app/models/person.rb
CHANGED
@@ -43,10 +43,7 @@ class Person < ActiveRecord::Base
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def primary_email_address
|
46
|
-
primary = email_addresses.
|
47
|
-
if not primary
|
48
|
-
primary = email_addresses.find :first
|
49
|
-
end
|
46
|
+
primary = email_addresses.detect(&:primary) || email_addreses.first
|
50
47
|
if primary.nil?
|
51
48
|
return nil
|
52
49
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae_users_legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Budin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thoughtbot-shoulda
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- LICENSE
|
37
37
|
- README
|
38
38
|
- Rakefile
|
39
|
-
- VERSION
|
40
39
|
- ae_users_legacy.gemspec
|
41
40
|
- app/controllers/account_controller.rb
|
42
41
|
- app/controllers/auth_controller.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.6.6
|