sequel-devise 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sequel-devise/version.rb +1 -1
- data/lib/sequel/plugins/devise.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a7696c3cd3279caa96cfaa5fd859aa2c51910a0
|
4
|
+
data.tar.gz: 167d8df373c34ba3d2d229f0566559666999e57f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a70a40cacea0e66783dc92559ab21792ab506194a70c1e3af48cb1174728bab68637810d603b59adeb2eb3ff1b97f6fa475cc957d2036354a6469d690e6d9f6d
|
7
|
+
data.tar.gz: 6332fc209458e4f6269b3a43c56c93617c561eb26c9c398be7a9781f2357cf96fd79a3bc1eb6269c56e1fa35c9f1b5ee049a7b07306a69d4f994beb0f546b38a
|
@@ -14,7 +14,7 @@ module Sequel
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def email_changed? # For validatable
|
17
|
-
column_changed?
|
17
|
+
new? || column_changed?(:email)
|
18
18
|
end
|
19
19
|
|
20
20
|
def email_was # For confirmable
|
@@ -27,7 +27,11 @@ module Sequel
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def update_attributes(hash, *ignored)
|
30
|
-
|
30
|
+
begin
|
31
|
+
update hash
|
32
|
+
rescue Sequel::ValidationFailed
|
33
|
+
return false
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
33
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Rosenfeld Rosas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|