ishapi 0.1.8.211 → 0.1.8.212

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: 38da895206ef926963fbd3efc244f4c192db5f58af170476c627a9c575cf56df
4
- data.tar.gz: 0bef717259a78cda432b95573b2756f87212cf2f83c2be8bccd4f7da42a7b34d
3
+ metadata.gz: 1c3500f2e50223b7bc089de1bf280c53b6cd968102cb61ea0bcedd2bf0f648a6
4
+ data.tar.gz: 75add24a2036cc8914de62d640de0138078cfb8f7915fdbc41d5b2fa446f2af5
5
5
  SHA512:
6
- metadata.gz: f7c564bde974cbd1e52dbca020bd0fbc14435b32836362c3f4682601a2022c1ca5258c9b8de00032b3ef234172acb52010b1086e90c2e20aa1dcf79731ae9942
7
- data.tar.gz: 1b65a4a010c5a4535d362eb6a659ce2e4e2b80e9b7922720021cdfa144ddf65057de04f128b2765df482c4f07ea725383530bbfa8de3dd0be16c115b530cd8d7
6
+ metadata.gz: b33e86d8941cedb14780cfe3ae24f15b7648f0f7a5750789e4d2dcd3fa903b553f1d49bd7cf0bf79243ebbed5f3eedfcb1dd200835a2ad1db2419409f93e42d9
7
+ data.tar.gz: 3c085cd337ecd508f64e7633eb2eb878386889f90cef51415f3fef68d2c81fa910d6b4a5d5fa81b248054a66751b5a331f500bd007d9b437a45e7035139ab3e7
@@ -0,0 +1,29 @@
1
+
2
+ require_dependency "ishapi/application_controller"
3
+ module Ishapi
4
+ class LeadsetsController < ApplicationController
5
+
6
+
7
+ def destroy
8
+ puts! params, 'params'
9
+
10
+ leadsets = Leadset.find( params[:leadset_ids] )
11
+ @results = []
12
+ leadsets.each do |leadset|
13
+ @results.push leadset.discard
14
+ end
15
+ flash[:notice] = "Discard outcome: #{@results.inspect}."
16
+ redirect_to action: 'index'
17
+ end
18
+
19
+ def index
20
+ authorize! :leadsets_index, ::Ishapi
21
+ out = Leadset.all
22
+ render json: {
23
+ items: out,
24
+ }
25
+ end
26
+
27
+ end
28
+ end
29
+
data/config/routes.rb CHANGED
@@ -13,6 +13,10 @@ Ishapi::Engine.routes.draw do
13
13
 
14
14
  post 'invoices/search', :to => 'invoices#search'
15
15
 
16
+ # L
17
+ get 'leadsets', to: 'leadsets#index'
18
+ delete 'leadsets', to: 'leadsets#destroy'
19
+
16
20
  get 'maps', to: 'maps#index'
17
21
  get 'maps/view/:slug', to: 'maps#show'
18
22
  get 'markers/view/:slug', to: 'maps#show_marker'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.211
4
+ version: 0.1.8.212
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2023-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -214,6 +214,7 @@ files:
214
214
  - app/controllers/ishapi/galleries_controller.rb
215
215
  - app/controllers/ishapi/gameui_controller.rb
216
216
  - app/controllers/ishapi/invoices_controller.rb
217
+ - app/controllers/ishapi/leadsets_controller.rb
217
218
  - app/controllers/ishapi/maps_controller.rb
218
219
  - app/controllers/ishapi/my/galleries_controller.rb
219
220
  - app/controllers/ishapi/my/reports_controller.rb