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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gallery.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dae27f9bd60494ecc32bdd5f5b2c58cf2afba950
4
- data.tar.gz: 592ac9358b9fc1a4fe6907e85b54a3a7c65972aa
3
+ metadata.gz: 66d9b72c4a19c4d56bcd09c0bb1e1e95759db3e9
4
+ data.tar.gz: '084186a75eefe7b3b0d145dab93856f103191bdf'
5
5
  SHA512:
6
- metadata.gz: 0342c37a0ab773c77ac2ab801ae81e9bbdabfb5c3fcb4119fdc94c41b1c4c1fcc403f235012c8474df54fb62fb24c8df6fb600af5282c5141f08605cadb1d4d0
7
- data.tar.gz: 1478145b25b05dbe5d6213f8ecbca0cecdc39bc30ee18b6566a8b75b66437a457c7a6c2db0a76b42bf954b5c624f173ed5623b0833214da734d07fb74c7a1a7b
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.40
4
+ version: 0.0.33.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox