ish_manager 0.1.8.98 → 0.1.8.99
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 +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: c2fd6a75c006fd7380ecffd9de331cff8aeec197
|
4
|
+
data.tar.gz: fb9544e83ba699a5bd23f3015693b543e3d713e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8f2dbab8b94ac3483d4c029dcf48b8f914a0d4baa6536c0cc13fd216803742d84541a723904914d6aeb1748ebe0791126e51753f873095870f6a09bddec20f9
|
7
|
+
data.tar.gz: 58552e7c84e7af1416e81160f2f0be1fbb18cf8de013b5138ac3f9662e4bbb777b5ba87d57f7b69b9a7ab1e93427235adcad486c005ec72dfdf1ce2aa8278ade
|
@@ -65,8 +65,8 @@ 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] ).
|
69
|
-
puts! params[:gallery][:shared_profiles], 'shared profiles'
|
68
|
+
params[:gallery][:shared_profiles] = IshModels::UserProfile.find( params[:gallery][:shared_profiles] ).to_a
|
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 ) }
|
72
72
|
::IshManager::ApplicationMailer.shared_galleries( new_shared_profiles, @gallery ).deliver
|