ish_manager 0.1.8.200 → 0.1.8.201

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: 977911b5fdb60deba4b13e1b2234eac6291ba15e35cc8166c48289e4fd18c1f4
4
- data.tar.gz: 83b1cf5cf46754f7f08d6f39812be9143016b60872687134aa76aa1c65fd530a
3
+ metadata.gz: 4a15094bec19315b6095bb183335c91ea8b5c9d3dbc97fc88854c8dccfd61366
4
+ data.tar.gz: f720c505d00cfb65a55bbcd0e44dbf4059b760afa6758f574117031b11d2b868
5
5
  SHA512:
6
- metadata.gz: 409ffe13099007e934475f6c7eba39a1cbf1095f6b5f3a5d93b377cab5a95bd06011c7c8d8c8cd634c6aeb6ed98fa53cc00159c1dc0e7234cf3f723b642d05ed
7
- data.tar.gz: 7468539f0150fd788e072047011d1ff173c06ea9dc66a1065b278778ae1b2cfb94c1aa134d2df609e4b7650eb6a1adb0c65ca7a7c5fb9fc40be905d6b8485651
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 = false
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
- # photo
113
- photo = Photo.new
114
- photo.photo = params[:report][:photo]
115
- # photo.user = @report.user
116
- photo.is_public = @report.is_public
117
- photo.is_trash = false
118
- photo.report_id = @report.id
119
- photo.save
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
@@ -27,6 +27,8 @@
27
27
  = f.label :description
28
28
  = f.text_area :description, :class => [ :tinymce ]
29
29
 
30
- .col-xs-12
30
+ .col-xs-12
31
+ = f.label :deleted_at
32
+ = f.text_field :deleted_at
31
33
  .actions
32
34
  = f.submit
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.200
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-15 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails