ish_manager 0.1.8.99 → 0.1.8.100
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 +5 -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: 7927a56b932a124dc6b2e30beb13003c1879e318
|
4
|
+
data.tar.gz: df132c80844e825276654b6ff27ad8d2b5e5e5fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a117470a7705ff92c00b3b4a3b89267fdf11fc5641e4f30e9e07a440d786dd039675100a6ada0560be2a4cdef50fb594cc5b27cbc55942c847e7977f379e86b
|
7
|
+
data.tar.gz: 7d5795c1695e526f12efbd57cca6591045cc7c837a716183efd9d918c877a9a2e4193213f953cca7c8d432334d42f981a93305c2b7a66b09b5dfd162d14420a3
|
@@ -64,8 +64,12 @@ class IshManager::GalleriesController < IshManager::ApplicationController
|
|
64
64
|
@gallery = Gallery.unscoped.find params[:id]
|
65
65
|
old_shared_profile_ids = @gallery.shared_profiles.map(&:id)
|
66
66
|
authorize! :update, @gallery
|
67
|
+
|
67
68
|
params[:gallery][:shared_profiles].delete('')
|
68
|
-
params[:gallery][:shared_profiles] = IshModels::UserProfile.find( params[:gallery][:shared_profiles] ).to_a
|
69
|
+
# params[:gallery][:shared_profiles] = IshModels::UserProfile.find( params[:gallery][:shared_profiles] ).to_a
|
70
|
+
params[:gallery][:shared_profile_ids] = params[:gallery][:shared_profiles]
|
71
|
+
params[:gallery].delete :shared_profiles
|
72
|
+
|
69
73
|
# puts! params[:gallery][:shared_profiles], 'shared profiles'
|
70
74
|
if @gallery.update_attributes( params[:gallery].permit! )
|
71
75
|
new_shared_profiles = params[:gallery][:shared_profiles].select { |p| !old_shared_profile_ids.include?( p.id ) }
|