ish_manager 0.1.8.33 → 0.1.8.34
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86334fc75c5dbee29794846fc94f18b672d23b4b
|
4
|
+
data.tar.gz: f5e5dada0dc5d5d365bce2eb76161a5b8d562442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 428b6106487c9521d72238458741f421a7e2365885abfbe4775e1aa4d2dbdebdc53cca5ccfc0d0369ed15d8c6a2585f9ed3a89553a304464942d63af3833e65e
|
7
|
+
data.tar.gz: 21006383d18c10feefe7cd6747d8432d9c9fae653f783fd376b1d5ef3415415e7328ab0d70e549d054b0159a807e0267a111428578b4f0c4c2f4442e71cc4143
|
@@ -40,16 +40,11 @@ class IshManager::ReportsController < IshManager::ApplicationController
|
|
40
40
|
@report = Report.unscoped.find params[:id]
|
41
41
|
authorize! :update, @report
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
photo.is_public = @report.is_public
|
49
|
-
photo.is_trash = false
|
50
|
-
photo.save
|
51
|
-
@report.photo = photo
|
52
|
-
params[:report][:photo] = nil
|
43
|
+
if params[:photo]
|
44
|
+
photo = Photo.new :photo => params[:photo]
|
45
|
+
@report.photo = photo
|
46
|
+
@report.save
|
47
|
+
end
|
53
48
|
|
54
49
|
respond_to do |format|
|
55
50
|
if @report.update_attributes(params[:report].permit!)
|