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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 631a19b5362a0b67eb43d6883e89f2aa554cea9c0de5a35ab641c466f71350ec
4
- data.tar.gz: b4aed0740e389a30eaa7f2b84d4a0802f251ff6c057f7436246575cc3e479ca6
3
+ metadata.gz: e8a8b3788af1a09b4a90fdc06c83ccc2e98c179c665a81a11af981b768800371
4
+ data.tar.gz: 1726230a660a720a942bd07bc452b0efd4cba30294510d13166f7674dd6d1954
5
5
  SHA512:
6
- metadata.gz: a525a6eabe3ac69ab09c789166ab875d9da4e075243216de90cd3aa2f2a8a6e1ca2132f218f61c5d571219bbf28886a431561b6e818e66496c3deaed583d3848
7
- data.tar.gz: 3779643f6dc60f1212abe5c25d0b190a1f726ca3a58975b6510d06752287ac11eb28fac215989b4e577134877f859b5c17aeeebd64d2e0399fefb56d6d0fafb6
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.to
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 '/obf/:id', to: 'obfuscared_redirects#show'
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
- desc 'obf to->to_link'
6
- task :obf_to_to_link => :environment do
7
- Wco::ObfuscatedRedirect.all.map do |obf|
8
- if !obf[:to_link] && obf[:to]
9
- obf[:to_link] = obf[:to]
10
- if obf.save
11
- print '^'
12
- else
13
- puts obf.errors.full_messages
14
- end
15
- end
16
- end
17
- puts 'ok'
18
- end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.159
4
+ version: 3.1.0.160
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev