devision 0.0.2.7 → 0.0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/devision/models/validatable.rb +1 -1
- data/lib/devision/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: 30695be9eaf79f557e6c2f9849dab2484d7aedd0
|
4
|
+
data.tar.gz: f2e18fba16706d2150ed2e130547d86067cbb2fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 083fa703bbe48a128bacccd8e36d9e5123eeec3af517095b93c2c95b7dad51cdf6e4fd00416c2447aaf77e413b6badeecd76ff8af4f0529f364bf0f526146a15
|
7
|
+
data.tar.gz: cad8e5779fd60c019f29734635b78f79aec1e466307b3b07d0fc7b8f70a844f722a70b9e61f3335db1f1c0722d389147751930f6c65ce5b830fa58bb268cca2f
|
@@ -17,7 +17,7 @@ module Devision
|
|
17
17
|
validates_format_of :email, with: email_regexp, allow_blank: true, if: :email_changed?
|
18
18
|
end
|
19
19
|
|
20
|
-
if base.instance_methods.
|
20
|
+
if base.instance_methods.include?(:password)
|
21
21
|
validates_presence_of :password, if: :password_required?
|
22
22
|
validates_confirmation_of :password, if: :password_required?
|
23
23
|
validates_length_of :password, within: password_length, allow_blank: true
|
data/lib/devision/version.rb
CHANGED