ish_manager 0.1.8.438 → 0.1.8.439

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
  SHA256:
3
- metadata.gz: 8b7fac3747efb8d55cd54cc76227c45d7ec650f0b64751826a0acfabccd0aafd
4
- data.tar.gz: d39b81c7a0b4b2f08acb28601b3d140eab8a74da6a5c9adc8390c7cc481b5d54
3
+ metadata.gz: 9ab6080d06ed44c29d7f0e1e6abe18506f8fca69ec32241ccf30f76a9d66d66b
4
+ data.tar.gz: 71ec0d289090ef315715edb360ec53e446e8a72496f6dcee767e09f01c7231e8
5
5
  SHA512:
6
- metadata.gz: f0c5286339f8722de386ad28c2a3718d6412076b67ce90353dd827946d0b68ebba54071ea05a42e8b807a9779bcd3d60be87b39e1bf154314077f5d51ddbdc89
7
- data.tar.gz: 984702f49949054f14c76daf7738da6bf83eaf3db180291a86f7c2b2b298d763c09f388773032cffe6190a5f5f52ec3ba8ce8d92573c53376f16768b598f4f9f
6
+ metadata.gz: b6c2e8d712417a16aa1ac599c7519f946d97d8587a37710464f066df0506f8b688755e3323ee0a97a6992799b8a3d6dd3fbdb9733755aa56ba1d3846911bca33
7
+ data.tar.gz: 99168ca8e5e930d0567a707973ea3a1446df384f2655ca278298f02125a6a49891be9267eb5e58ca94747b92a367ed476cfcc6a1a6afe292f55977c87dd7de91
@@ -6,17 +6,17 @@ class IshManager::ReportsController < IshManager::ApplicationController
6
6
  # alphabetized : )
7
7
 
8
8
  def create
9
- @report = Report.new params[:report].permit!
10
- @report.user_profile = @current_profile # @TODO: this should not be hard-coded
11
- authorize! :create, @report
9
+ authorize! :create, Report
12
10
 
13
- old_shared_profile_ids = @report.shared_profiles.map(&:id)
14
11
  if params[:report][:shared_profiles].present?
15
12
  params[:report][:shared_profiles].delete('')
16
13
  end
17
14
  params[:report][:shared_profile_ids] = params[:report][:shared_profiles]
18
15
  params[:report].delete :shared_profiles
19
16
 
17
+ @report = Report.new params[:report].permit!
18
+ @report.user_profile = @current_profile # @TODO: this should not be hard-coded
19
+
20
20
  flag = @report.save
21
21
  respond_to do |format|
22
22
  if flag
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.438
4
+ version: 0.1.8.439
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox