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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c848a5a3e9424ff6b0cf464d743b5bfe836c59a4
4
- data.tar.gz: dbc5eb6386831c57b876d85c69cb06f109a4003c
3
+ metadata.gz: 39f68fd9ce49b7b0dd5fdf462efcd5fd108e9558
4
+ data.tar.gz: a8463f727d8acc6a1cdf5509446b73528a404b16
5
5
  SHA512:
6
- metadata.gz: f2e838db04cf28093ec4d405e1ad48a4b386e571834f8d952ebbafc5c632dcab4e7a6778e646dead8c31fc119f2238ab967dc1f4c2c0587b308b5db24649ec93
7
- data.tar.gz: f54b1f88f06fedcf68c19d7fd1a7518a4567c708710d443119e796489d1d865962f72e823150fb3037e928728ca3a5f62d99451a45f7bf42ca5c01bbc04e7df3
6
+ metadata.gz: 006beade67a7d19cac2c7a43c6c464ac8dc99a28373ed37833ea27f764da5c141ba63914bd229b36c31a778ae158f2fab66d9fad41d75ef99c1cc3fcda8bf88e
7
+ data.tar.gz: 36aa00e1f3e3ac4a43f9894ddfacf0af38d5cbe4ef896e5bb8b706c2efa6baced89499a78e14f50e13b1e1bac19e23e3275dc45dbb1e5c0a45b07256f43a2b1b
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
- gem.version = "0.6.13"
3
+ gem.version = "0.6.14"
4
4
 
5
5
  gem.authors = ["Nat Budin"]
6
6
  gem.email = ["natbudin@gmail.com"]
@@ -43,10 +43,7 @@ class Person < ActiveRecord::Base
43
43
  end
44
44
 
45
45
  def primary_email_address
46
- primary = email_addresses.find_by_primary true
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.13
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-03-21 00:00:00.000000000 Z
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