cortex-plugins-core 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/user_field_type.rb +3 -3
- data/lib/cortex/plugins/core/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: a54552d0778dd0f794a3468f902430f46f990d28
|
4
|
+
data.tar.gz: 23020db8004baf503bf92528d7a35565cf0265db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33b166dd5f9cfaf5d0e6d29446d135e8cae816eea63a0c4756cd34bf9d8a900f7a523f75fb2f56c362264ad5fcd915ed805201953fb84aedb2dde2c33806f37d
|
7
|
+
data.tar.gz: df224d0216809f1fd4a34309c7009a11e994abd7da8b424e45d06350b3d36c2531e98df1a3d845004bbdbe8f958c762a4c4182349b0769a50cafafe7c5a4ff5b
|
@@ -25,10 +25,10 @@ class UserFieldType < FieldType
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def valid_user_id?
|
28
|
-
return true if
|
28
|
+
return true if user_id.nil?
|
29
29
|
|
30
|
-
unless User.exists?(
|
31
|
-
errors.add(:user_id, "
|
30
|
+
unless User.exists?(user_id)
|
31
|
+
errors.add(:user_id, "does not exist")
|
32
32
|
false
|
33
33
|
end
|
34
34
|
end
|