ish_models 0.0.33.180 → 0.0.33.181
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/video.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35c779eec7fc64840dfadc7ca7d585f6c4a583295e85c278580b53c3c0c0775a
|
4
|
+
data.tar.gz: 86dc21c7dca66c81652521a0d4ff86ab110bdbe819351835763f2bd40cdc320c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be8bc0b1e9e652f25308acb2c6c90ab0703e310bab8e51ad2f86404897444c6502d2910d1a5eae7862e5c6147a6716af1987f53cffcb0736b8f2974e9dde10db
|
7
|
+
data.tar.gz: a1bd576a1ef3d754f3216c0c6de25199872171783932ee8ad1628475dc1688f28c236ef86c078227ca7040ae42141622f028f1aecb8317726274b1c4d9370a91
|
data/lib/video.rb
CHANGED
@@ -35,7 +35,7 @@ class Video
|
|
35
35
|
field :lang, :type => String, :default => 'en'
|
36
36
|
|
37
37
|
field :youtube_id, :type => String
|
38
|
-
validates :youtube_id, :uniqueness => true
|
38
|
+
validates :youtube_id, :uniqueness => true, allow_nil: true
|
39
39
|
|
40
40
|
|
41
41
|
belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile', :inverse_of => :videos
|