ish_models 0.0.33.40 → 0.0.33.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gallery.rb +2 -2
- 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: 66d9b72c4a19c4d56bcd09c0bb1e1e95759db3e9
|
4
|
+
data.tar.gz: '084186a75eefe7b3b0d145dab93856f103191bdf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eeb23060525941086561023d9fd0679f603f3f9778c36f20a1ee03d5b0e78764124735970725dabbb5e9a995395bd5f751398dc7dde0484eeb1bf245cba963b
|
7
|
+
data.tar.gz: bb4db3e036f750cf436b06c2254b943cb5d8c4f699ba37aad65d0dfffa6a6e04feb4752e0ba60b4e7e43ca19ec07bd67f1bec611802b65ff282cdab338910ee8
|
data/lib/gallery.rb
CHANGED
@@ -16,8 +16,8 @@ class Gallery
|
|
16
16
|
[['', nil]] + out.map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
|
17
17
|
end
|
18
18
|
|
19
|
-
belongs_to :site
|
20
|
-
validates :site, :presence => true
|
19
|
+
belongs_to :site, :optional => true
|
20
|
+
# validates :site, :presence => true
|
21
21
|
|
22
22
|
belongs_to :user_profile, :optional => true, :class_name => 'IshModels::UserProfile', :inverse_of => :galleries
|
23
23
|
field :username, :type => String # denormalization, not used _vp_ 20171203
|