empower 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/empower/omniauth.rb +4 -4
- data/lib/empower/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b807143a9e1cdb1b237d42d1bec17b9f5ada939d
|
4
|
+
data.tar.gz: c6ede5512544397ae4ec1c786293bb5787d86132
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a23c399a04801665b8d2843b3e8d7828ec487b6c17d494566ed157e08d3dc0bc6c51edfe89d3ef49750c813446995470104c781f554203ada81042571e3fc77
|
7
|
+
data.tar.gz: d2e9c9f11d00c427a80b7c3cfe56fbfb7bacc99f37c4a7b1827a62dda785d59fba0e65df9dc278dae31e67c2b39a1706eca062d2461e4c84fed69485f5bd951e
|
data/Gemfile.lock
CHANGED
data/lib/empower/omniauth.rb
CHANGED
@@ -15,10 +15,10 @@ module Empower
|
|
15
15
|
:password => Devise.friendly_token[0,20],
|
16
16
|
)
|
17
17
|
attrs = {}
|
18
|
-
if
|
18
|
+
if ActiveRecord::Base.connection.column_exists?(:users, :name, :string)
|
19
19
|
attrs[:name] = auth.info.name
|
20
20
|
end
|
21
|
-
if
|
21
|
+
if ActiveRecord::Base.connection.column_exists?(:users, :image, :string)
|
22
22
|
attrs[:image] = auth.info.image
|
23
23
|
end
|
24
24
|
if attrs.keys.size > 0
|
@@ -26,10 +26,10 @@ module Empower
|
|
26
26
|
end
|
27
27
|
else
|
28
28
|
attrs = {}
|
29
|
-
if
|
29
|
+
if ActiveRecord::Base.connection.column_exists?(:users, :name, :string)
|
30
30
|
attrs[:name] = auth.info.name
|
31
31
|
end
|
32
|
-
if
|
32
|
+
if ActiveRecord::Base.connection.column_exists?(:users, :image, :string)
|
33
33
|
attrs[:image] = auth.info.image
|
34
34
|
end
|
35
35
|
if attrs.keys.size > 0
|
data/lib/empower/version.rb
CHANGED