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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 422d589dc168fe061f09132e7d1c3c363988a381
4
- data.tar.gz: 27fa53693d0fda9dd6bc835fdfa82b7d0c2f77b9
3
+ metadata.gz: c2fd6a75c006fd7380ecffd9de331cff8aeec197
4
+ data.tar.gz: fb9544e83ba699a5bd23f3015693b543e3d713e0
5
5
  SHA512:
6
- metadata.gz: 51989c4698bccf9fcaae2ee91edf100fb060a7e6a1f8f80b3ffa0506e1f3ae5f01b7c326739ec1b70eb5a2011760f932ae151a46de845548d93127fdc7b5ae71
7
- data.tar.gz: 67b208c993156e6efd8d0c2854bfa3fccfca3121a712dd6252e8c89adb030d8f0386f73c4c2a94e0a8d3fdcfc6c88741a612f4db984203fc6ae5f96f2933080a
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] ).map(&:id)
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
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.98
4
+ version: 0.1.8.99
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox