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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2fd6a75c006fd7380ecffd9de331cff8aeec197
4
- data.tar.gz: fb9544e83ba699a5bd23f3015693b543e3d713e0
3
+ metadata.gz: 7927a56b932a124dc6b2e30beb13003c1879e318
4
+ data.tar.gz: df132c80844e825276654b6ff27ad8d2b5e5e5fd
5
5
  SHA512:
6
- metadata.gz: e8f2dbab8b94ac3483d4c029dcf48b8f914a0d4baa6536c0cc13fd216803742d84541a723904914d6aeb1748ebe0791126e51753f873095870f6a09bddec20f9
7
- data.tar.gz: 58552e7c84e7af1416e81160f2f0be1fbb18cf8de013b5138ac3f9662e4bbb777b5ba87d57f7b69b9a7ab1e93427235adcad486c005ec72dfdf1ce2aa8278ade
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 ) }
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.99
4
+ version: 0.1.8.100
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox