active_scaffold_batch 3.5.0 → 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 -14
- data/lib/active_scaffold_batch/version.rb +1 -1
- metadata +2 -2
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,21 +1,21 @@
|
|
1
1
|
module ActiveScaffoldBatch
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
initializer
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
self::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete
|
16
|
-
end
|
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
|
17
15
|
end
|
16
|
+
end
|
18
17
|
|
18
|
+
initializer("active_scaffold_batch.view") do
|
19
19
|
ActiveSupport.on_load(:action_view) do
|
20
20
|
begin
|
21
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.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Cambra
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-04-
|
12
|
+
date: 2024-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: active_scaffold
|