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 +4 -4
- data/app/controllers/ish_manager/reports_controller.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab6080d06ed44c29d7f0e1e6abe18506f8fca69ec32241ccf30f76a9d66d66b
|
4
|
+
data.tar.gz: 71ec0d289090ef315715edb360ec53e446e8a72496f6dcee767e09f01c7231e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|