ish_manager 0.1.8.200 → 0.1.8.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a15094bec19315b6095bb183335c91ea8b5c9d3dbc97fc88854c8dccfd61366
|
|
4
|
+
data.tar.gz: f720c505d00cfb65a55bbcd0e44dbf4059b760afa6758f574117031b11d2b868
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab01f523676ce2b8a1054fba1cb7afc29608f7c608dda5f270bbbe8dbf6c6cdca1514eb9d58949895c216ccb78854184d4e13c60adbff73cd3217a886a62f463
|
|
7
|
+
data.tar.gz: 35db231092f1b9ebe4f74b03b21738c18c1e1c50676d0cda599cc0c84e387aa517a2be60c2e323cfc26b5d6eda2e65dfe933e824b38a5ef20459751c2fef0e51
|
|
@@ -96,28 +96,22 @@ class IshManager::ReportsController < IshManager::ApplicationController
|
|
|
96
96
|
@report.is_feature = false
|
|
97
97
|
@report.site = @site
|
|
98
98
|
|
|
99
|
-
saved =
|
|
100
|
-
verified = true # verify_recaptcha( :model => @report, :message => 'There is a problem with recaptcha.' ) # @TODO: what this
|
|
101
|
-
if Rails.env.development?
|
|
102
|
-
verified = true
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
if verified
|
|
106
|
-
saved = @report.save
|
|
107
|
-
end
|
|
99
|
+
saved = @report.save
|
|
108
100
|
|
|
109
101
|
respond_to do |format|
|
|
110
102
|
if saved
|
|
111
103
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
104
|
+
if params[:report][:photo]
|
|
105
|
+
# photo
|
|
106
|
+
photo = Photo.new
|
|
107
|
+
photo.photo = params[:report][:photo]
|
|
108
|
+
# photo.user = @report.user
|
|
109
|
+
photo.is_public = @report.is_public
|
|
110
|
+
photo.is_trash = false
|
|
111
|
+
photo.report_id = @report.id
|
|
112
|
+
photo.save
|
|
113
|
+
end
|
|
114
|
+
|
|
121
115
|
# for homepage
|
|
122
116
|
# @TODO: move this to the model
|
|
123
117
|
if @report.is_public
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ish_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.8.
|
|
4
|
+
version: 0.1.8.201
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- piousbox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-02-
|
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|