wco_models 3.1.0.283 → 3.1.0.284

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: 5586b245e4a0feb38e066d43b679d3323f1327e5ead4d1a071fc2bf065ae0e12
4
- data.tar.gz: 11ef774e3b92a1d788c543ff5ed00759c7d1e455db7fa60ea63bf537b28e1b9c
3
+ metadata.gz: e3cb1ecd7199dc69284f536be5e677c6f9f11adffa4f7241d17120d7e4879a97
4
+ data.tar.gz: 683427ed5cb7b7dc26dd8746a77ba1120a6bf4da263f4884c5042c0dbcf800f5
5
5
  SHA512:
6
- metadata.gz: 3c350bb1c82ad155c672d7584afc8c1fa41fa79d73a24ba75dee9ac983a2abfd78b641e2b4823665d9561b555b5d75a49881d6b556ebc96c91cf3f2dba133d30
7
- data.tar.gz: 926a2851171f1c8437d3a1c2f180aedcd34c6716e63ec5701225d301164fe2327319914c67bf7eda156a72bfc22fd4fe93bbea63e21e9f4785016d6db79dc973
6
+ metadata.gz: 51c34c30ac09071bf026ccf065fba1e1bcbe734ae6ddc9d1b8388d87017f3afa2f8979f461108a62b1caa8de3f90972d5aa2ac6baedb11e3df268d2a1e6ef122
7
+ data.tar.gz: f1c9965e2b84b30ad72110d4c8a8c386b21ab488f2fbd5078ff2f8cbc088a58ddfa065b4108145ef1365d11e687120a52915ee210dae030a9451e58cc16416ce
@@ -20,6 +20,10 @@ class Wco::ApplicationController < ActionController::Base
20
20
  before_action :current_profile
21
21
  before_action :set_lists
22
22
 
23
+ def error
24
+ throw 'uncaught error'
25
+ end
26
+
23
27
  def home
24
28
  authorize! :home, Wco
25
29
  end
@@ -13,6 +13,18 @@ class Wco::ProfilesController < Wco::ApplicationController
13
13
  end
14
14
  end
15
15
 
16
+ def destroy
17
+ @profile = Wco::Profile.unscoped.find params[:id]
18
+ authorize! :create, @profile
19
+
20
+ if @profile.destroy
21
+ flash_notice 'Deleted Wco::Profile'
22
+ else
23
+ flash_alert "Cannot destroy profile: #{@profile.errors.fill_messages.join(', ')}."
24
+ end
25
+ redirect_to request.referrer || { action: 'index' }
26
+ end
27
+
16
28
  def edit
17
29
  @profile = Wco::Profile.find params[:id]
18
30
  authorize! :update, @profile
@@ -20,8 +20,6 @@ class Ability
20
20
  end
21
21
 
22
22
  can [ :open_permission ], Wco
23
- can [ :show ], Wco::ObfuscatedRedirect
24
- # can [ :open_permission ], WcoEmail
25
23
 
26
24
  end
27
25
  end
@@ -1,5 +1,7 @@
1
1
 
2
-
2
+ ##
3
+ ## not used?! there is no collection _vp_ 2026-07-12
4
+ ##
3
5
  class Wco::Newsitem
4
6
  include Mongoid::Document
5
7
  include Mongoid::Timestamps
@@ -1,4 +1,7 @@
1
1
 
2
+ ##
3
+ ## not used?! there is no collection _vp_ 2026-07-12
4
+ ##
2
5
  class Wco::NewsoverlayConfig
3
6
  include Mongoid::Document
4
7
  include Mongoid::Timestamps
@@ -1,4 +1,6 @@
1
-
1
+ ##
2
+ ## not used? no collection
3
+ ##
2
4
  class WcoEmail::Config
3
5
  include Mongoid::Document
4
6
  include Mongoid::Timestamps
@@ -3,7 +3,7 @@ class WcoEmail::EmailFilter
3
3
  include Mongoid::Document
4
4
  include Mongoid::Timestamps
5
5
  include Mongoid::Paranoia
6
- store_in collection: 'office_email_filters' ## 'wco_email_email_filters'
6
+ store_in collection: 'office_email_filters'
7
7
 
8
8
  field :slug, type: :string
9
9
 
@@ -1,4 +1,7 @@
1
1
 
2
+ ##
3
+ ## not used? no collection
4
+ ##
2
5
  class WcoHosting::File
3
6
  include Mongoid::Document
4
7
  include Mongoid::Timestamps
@@ -1,4 +1,7 @@
1
1
 
2
+ ##
3
+ ## not used? no collection
4
+ ##
2
5
  class WcoHosting::Task
3
6
  include Mongoid::Document
4
7
  include Mongoid::Timestamps
@@ -1,4 +1,7 @@
1
1
 
2
+ ##
3
+ ## not used? no collection
4
+ ##
2
5
  class WcoHosting::TaskTmpl
3
6
  include Mongoid::Document
4
7
  include Mongoid::Timestamps
@@ -7,5 +7,6 @@
7
7
  - @profiles.each do |profile|
8
8
  %li
9
9
  = link_to '[~]', edit_profile_path(profile)
10
+ .d-inline-block= button_to 'x', profile_path(profile), method: :delete, data: { confirm: 'Are you sure?' }
10
11
  = profile.email
11
12
  <b>Leadset:</b> #{link_to profile.leadset, leadset_path(profile.leadset)}
data/config/routes.rb CHANGED
@@ -2,6 +2,8 @@
2
2
  Wco::Engine.routes.draw do
3
3
  root to: 'application#home'
4
4
 
5
+ get '/error', to: 'application#error'
6
+
5
7
  namespace :api do
6
8
  get 'leads/index_hash', to: 'leads#index_hash'
7
9
 
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.283
4
+ version: 3.1.0.284
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-10 00:00:00.000000000 Z
11
+ date: 2026-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -497,7 +497,6 @@ files:
497
497
  - app/models/wco/newsoverlay_config.rb
498
498
  - app/models/wco/newspartial.rb
499
499
  - app/models/wco/newsvideo.rb
500
- - app/models/wco/obfuscated_redirect.rb
501
500
  - app/models/wco/office_action.rb
502
501
  - app/models/wco/office_action_template.rb
503
502
  - app/models/wco/office_action_template_tie.rb
@@ -1,21 +0,0 @@
1
-
2
- class Wco::ObfuscatedRedirect
3
- include Mongoid::Document
4
- include Mongoid::Timestamps
5
- include Mongoid::Paranoia
6
- store_in collection: 'office_obfuscated_redirects'
7
-
8
- field :slug, type: :string
9
-
10
- field :to_link, type: :string
11
- validates :to_link, presence: true
12
-
13
- field :visited_at, type: DateTime
14
- field :visits, type: :array, default: []
15
-
16
- def obf_link
17
- "https://email.wasya.co/api/obf/#{self.id}"
18
- end
19
-
20
- end
21
- Wco::Obf ||= Wco::ObfuscatedRedirect