wco_models 3.1.0.159 → 3.1.0.160
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/wco/api/obfuscated_redirects_controller.rb +3 -1
- data/config/routes.rb +2 -1
- data/lib/tasks/migrate_tasks.rake +15 -14
- 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: e8a8b3788af1a09b4a90fdc06c83ccc2e98c179c665a81a11af981b768800371
|
4
|
+
data.tar.gz: 1726230a660a720a942bd07bc452b0efd4cba30294510d13166f7674dd6d1954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 501eca4933ea763b0b2b9c10d81eb33274952f19a459eb2fb052392ea755282869db92108ac8c3422780be83b73c4d5f1551abbe9b86e167f68862bcb2d4c905
|
7
|
+
data.tar.gz: fa02980d1b8e50109518fb2893b853922c76eaeeee09b77870c06fefb9531fc0a1a9168c6b2f75534ea069ccfc2fadaf1a45940179470e022d545c0634ee2532
|
@@ -1,6 +1,8 @@
|
|
1
1
|
|
2
2
|
class Wco::Api::ObfuscatedRedirectsController < Wco::ApiController
|
3
3
|
|
4
|
+
skip_before_action :decode_jwt
|
5
|
+
|
4
6
|
def show
|
5
7
|
@obf = Wco::ObfuscatedRedirect.find params[:id]
|
6
8
|
# puts! @obf, '@obf'
|
@@ -16,7 +18,7 @@ class Wco::Api::ObfuscatedRedirectsController < Wco::ApiController
|
|
16
18
|
render and return
|
17
19
|
end
|
18
20
|
|
19
|
-
redirect_to @obf.
|
21
|
+
redirect_to @obf.to_link
|
20
22
|
end
|
21
23
|
|
22
24
|
end
|
data/config/routes.rb
CHANGED
@@ -5,7 +5,8 @@ Wco::Engine.routes.draw do
|
|
5
5
|
namespace :api do
|
6
6
|
get 'leads/index_hash', to: 'leads#index_hash'
|
7
7
|
|
8
|
-
get '
|
8
|
+
get 'obf', to: 'obfuscated_redirects#show' ## testing only.
|
9
|
+
get 'obf/:id', to: 'obfuscared_redirects#show'
|
9
10
|
end
|
10
11
|
|
11
12
|
get 'application/tinymce', to: 'application#tinymce'
|
@@ -2,19 +2,20 @@
|
|
2
2
|
|
3
3
|
namespace :migrate do
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
5
|
+
## 2024-05-15 Done.
|
6
|
+
# desc 'obf to->to_link'
|
7
|
+
# task :obf_to_to_link => :environment do
|
8
|
+
# Wco::ObfuscatedRedirect.all.map do |obf|
|
9
|
+
# if !obf[:to_link] && obf[:to]
|
10
|
+
# obf[:to_link] = obf[:to]
|
11
|
+
# if obf.save
|
12
|
+
# print '^'
|
13
|
+
# else
|
14
|
+
# puts obf.errors.full_messages
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
# end
|
18
|
+
# puts 'ok'
|
19
|
+
# end
|
19
20
|
|
20
21
|
end
|