ish_manager 0.1.8.92 → 0.1.8.93

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84651c4fff4130bd6d48b9281145253ff163c70c
4
- data.tar.gz: 0ea55db96485f23ee41691732a646ea701562aae
3
+ metadata.gz: 72a28194b5681660e9f8e8149c327afcfbe2fbac
4
+ data.tar.gz: 832754333221d46f7daaba9acee3880240f37f86
5
5
  SHA512:
6
- metadata.gz: 6fbf0675b4299b66f8b31d8740026da59c29ce100d7b427b5291df33ed718840542ddc841f30098969ac7c5d2395088c1a34a44be98421c79506f8b72fb50235
7
- data.tar.gz: fc1bc1a554ca1abf4be81577df31b52609b0d5def524f0c36c3d31d1446d8300d103c80a05efdbfdd5dd77c2707a9f84f7f1407249fcd2c1cd496465e6cd3dd3
6
+ metadata.gz: 2cd6a618e17ec1e2e90e0198867896fa39c0c669599d8a5e61c66557237a065626915f8873f11339b29182fca62dcae735e747868da20345e60b100776d020ea
7
+ data.tar.gz: 9fe3c3307e5b877a8fb7752003913c325430730331dd52fc0035aa13a90a4ea64d0c5555f97e7ec74f6702063045243c785457618138ed79f7634f2b342911a9
@@ -65,7 +65,7 @@ class IshManager::GalleriesController < IshManager::ApplicationController
65
65
  old_shared_profile_ids = @gallery.shared_profiles.map(&:id)
66
66
  authorize! :update, @gallery
67
67
  params[:gallery][:shared_profiles].delete('')
68
- params[:gallery][:shared_profiles] = IshModels::UserProfile.find params[:gallery][:shared_profiles]
68
+ params[:gallery][:shared_profiles] = IshModels::UserProfile.find( params[:gallery][:shared_profiles].permit! ).map(&:id)
69
69
  puts! params[:gallery][:shared_profiles], 'shared profiles'
70
70
  if @gallery.update_attributes( params[:gallery].permit! )
71
71
  new_shared_profiles = params[:gallery][:shared_profiles].select { |p| !old_shared_profile_ids.include?( p.id ) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.92
4
+ version: 0.1.8.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox