active_scaffold_batch 3.4.5 → 3.5.0
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 +4 -4
- data/lib/active_scaffold_batch/engine.rb +13 -2
- data/lib/active_scaffold_batch/version.rb +2 -2
- metadata +5 -21
- data/lib/active_scaffold_batch/config/core.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e32cd2f2a255541e078e22730f232b92e185802ad7d641313fe3b272354ddf53
|
4
|
+
data.tar.gz: d42cdc9ddf6f6d5a461e3cf2b7abec64502aa839776d7302807a7a6b869ed0e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab9e72e959c13dd367896fe9f00e48f17ae227739b94746391dfa4a9e4b1738983947dd8c6c2add37c90eddad814e470591fd2d30c76f201f3e408e0f15dc95
|
7
|
+
data.tar.gz: 2d555a17a6e1bd929a2f6343cf49651db2a04672ab7e85fea85250d81b2c7acbad5dc6c673a0c7d5bc1cab7a8deea84cb0662558ea5c69eff67880e46d2bdceb
|
@@ -1,8 +1,19 @@
|
|
1
1
|
module ActiveScaffoldBatch
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
initializer("initialize_active_scaffold_batch", :after => "initialize_active_scaffold") do
|
4
|
-
|
5
|
-
|
4
|
+
initializer 'active_scaffold_export.routes' do
|
5
|
+
ActiveSupport.on_load :active_scaffold_routing do
|
6
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_edit] = :get
|
7
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_update] = :post
|
8
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_new] = :get
|
9
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_create] = :post
|
10
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_add] = :get
|
11
|
+
#not working because routing picks show route instead
|
12
|
+
#self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :get
|
13
|
+
#you may define a route for your controller before resource routes
|
14
|
+
#match 'players/batch_destroy' => 'players#batch_destroy', :via => [:get]
|
15
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete
|
16
|
+
end
|
6
17
|
end
|
7
18
|
|
8
19
|
ActiveSupport.on_load(:action_view) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Cambra
|
@@ -9,36 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: bundler
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - "~>"
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '1.0'
|
21
|
-
type: :development
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - "~>"
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '1.0'
|
28
14
|
- !ruby/object:Gem::Dependency
|
29
15
|
name: active_scaffold
|
30
16
|
requirement: !ruby/object:Gem::Requirement
|
31
17
|
requirements:
|
32
18
|
- - ">="
|
33
19
|
- !ruby/object:Gem::Version
|
34
|
-
version: 3.
|
20
|
+
version: 3.7.1
|
35
21
|
type: :runtime
|
36
22
|
prerelease: false
|
37
23
|
version_requirements: !ruby/object:Gem::Requirement
|
38
24
|
requirements:
|
39
25
|
- - ">="
|
40
26
|
- !ruby/object:Gem::Version
|
41
|
-
version: 3.
|
27
|
+
version: 3.7.1
|
42
28
|
description: You want to destroy/update many records at once with activescaffold?
|
43
29
|
email: activescaffold@googlegroups.com
|
44
30
|
executables: []
|
@@ -87,7 +73,6 @@ files:
|
|
87
73
|
- lib/active_scaffold/helpers/datepicker_update_column_helpers.rb
|
88
74
|
- lib/active_scaffold/helpers/update_column_helpers.rb
|
89
75
|
- lib/active_scaffold_batch.rb
|
90
|
-
- lib/active_scaffold_batch/config/core.rb
|
91
76
|
- lib/active_scaffold_batch/engine.rb
|
92
77
|
- lib/active_scaffold_batch/version.rb
|
93
78
|
homepage: http://github.com/scambra/active_scaffold_batch
|
@@ -109,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
94
|
- !ruby/object:Gem::Version
|
110
95
|
version: '0'
|
111
96
|
requirements: []
|
112
|
-
|
113
|
-
rubygems_version: 2.7.9
|
97
|
+
rubygems_version: 3.2.3
|
114
98
|
signing_key:
|
115
99
|
specification_version: 4
|
116
100
|
summary: Batch Processing for ActiveScaffold
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Need to open the AS module carefully due to Rails 2.3 lazy loading
|
2
|
-
ActiveScaffold::Config::Core.class_eval do
|
3
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_edit] = :get
|
4
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_update] = :post
|
5
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_new] = :get
|
6
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_create] = :post
|
7
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_add] = :get
|
8
|
-
#not working because routing picks show route instead
|
9
|
-
#ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :get
|
10
|
-
#you may define a route for your controller before resource routes
|
11
|
-
#match 'players/batch_destroy' => 'players#batch_destroy', :via => [:get]
|
12
|
-
ActiveScaffold::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete
|
13
|
-
end
|