wco_models 3.1.0.162 → 3.1.0.164

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: 4a881b4fa95b5c516fbc39b907e19300cc4398503ecc724f91d8f0828dd76886
4
- data.tar.gz: 5f22a57dc79487a648a9c3e5330308287e47adc1b439614a7b7fc3663576d008
3
+ metadata.gz: 2c87e9885f96f8af28fb6dfe8b42737feebd4ea51fe9930a1644aabb6b3cb13b
4
+ data.tar.gz: addac291921ea6de9403cc874433454bca207c10873e440c9e32c130801fd917
5
5
  SHA512:
6
- metadata.gz: 160e765cac58ae6cb17d8d9681fc792760d10b6023a2eead64a3d8f207b2122f6c54710482e8980478c0128214922faa0790d3f00455ff48d49c89e2e24e6c77
7
- data.tar.gz: 29f31d850a1a2b77f6b1c0f9747fb0cc5ef25383068f4e8e826d25277b7387a11f830207d20a5f847d536949b7deec22f8ec9c8a8eb3ae81bfc19a7b7b509065
6
+ metadata.gz: 7f82577f7d2deec1559c9680a9ca112297f2707b9eb67dfb6e21d619fa56d9aedab23c6f14b2681e78d06e50ad4585c268217d0a0bd8088acf253c46facc0594
7
+ data.tar.gz: e7649c671c0071be4e81ef15d0f67a2bdf70d6cbda15d8928f08fdc190fbf78376734df98d8b30314f95e90e28c27c51e4f6ead4b94ac1198b3ef23859a735ae
@@ -10,6 +10,7 @@ class Wco::ApiController < ActionController::Base
10
10
  private
11
11
 
12
12
  def decode_jwt
13
+ byebug
13
14
  out = JWT.decode params[:jwt_token], nil, false
14
15
  email = out[0]['email']
15
16
  user = User.find_by({ email: email })
@@ -12,6 +12,7 @@ class Wco::Lead
12
12
  field :name
13
13
  field :phone
14
14
  field :address
15
+ field :comment
15
16
 
16
17
  belongs_to :leadset, class_name: 'Wco::Leadset'
17
18
  before_validation :set_leadset, on: :create
@@ -38,6 +38,10 @@
38
38
  %label Photo
39
39
  = f.file_field :photo
40
40
 
41
+ .field
42
+ %label comment
43
+ = f.text_area :comment
44
+
41
45
  .actions
42
46
  = f.submit
43
47
 
@@ -20,8 +20,10 @@
20
20
  %li Phone: #{@lead.phone}
21
21
  - if @lead.address
22
22
  %li Address: #{@lead.address}
23
- -# - if @lead.comment
24
- -# %li Comment: #{raw @lead.comment}
23
+ - if @lead.comment
24
+ %li
25
+ Comment:
26
+ %pre.descr #{raw @lead.comment}
25
27
 
26
28
  .col-md-6
27
29
  - if @lead.photo
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.162
4
+ version: 3.1.0.164
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-06 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ahoy_matey