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 +4 -4
- data/app/controllers/ish_manager/galleries_controller.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: 72a28194b5681660e9f8e8149c327afcfbe2fbac
|
4
|
+
data.tar.gz: 832754333221d46f7daaba9acee3880240f37f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 ) }
|