active_scaffold_batch 3.4.5 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_scaffold_batch/engine.rb +14 -3
- 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: 5e267f6b7d07d753878be37829e54cfaaa406fa599d201f3a1de62f9cbe021ea
|
4
|
+
data.tar.gz: afaaf3ec17181f829cf44823810925ed05442bb16fbd81cd59a28efcee620cb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90339d953b420292b95bbd9ebfe98c50d86d7efc5c8867150c677a08993cbad81b61225204dde9762792188083c2ec740faaea6120ab26434352e174410d7997
|
7
|
+
data.tar.gz: 30ea04fb6b93a207fec12846c9ec7f3a83dce1a2dc070678f668f9c3cfb24fadb05af239d66e2965d05448f8197bd2dafc26a52712c7b19e2fd72ab70aced1b1
|
@@ -1,10 +1,21 @@
|
|
1
1
|
module ActiveScaffoldBatch
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
initializer
|
4
|
-
ActiveSupport.on_load
|
5
|
-
|
3
|
+
initializer 'active_scaffold_batch.routes' do
|
4
|
+
ActiveSupport.on_load :active_scaffold_routing do
|
5
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_edit] = :get
|
6
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_update] = :post
|
7
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_new] = :get
|
8
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_create] = :post
|
9
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_add] = :get
|
10
|
+
#not working because routing picks show route instead
|
11
|
+
#self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :get
|
12
|
+
#you may define a route for your controller before resource routes
|
13
|
+
#match 'players/batch_destroy' => 'players#batch_destroy', :via => [:get]
|
14
|
+
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete
|
6
15
|
end
|
16
|
+
end
|
7
17
|
|
18
|
+
initializer("active_scaffold_batch.view") do
|
8
19
|
ActiveSupport.on_load(:action_view) do
|
9
20
|
begin
|
10
21
|
include ActiveScaffold::Helpers::UpdateColumnHelpers
|
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.1
|
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-09 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
|