activeadmin_table_footer 1.0.0 → 1.0.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd4e5d13097968b6dd656ac4385181e8f2016951126737dff695a72453c5a9c8
|
|
4
|
+
data.tar.gz: 19644d91c95753b13c2e7248ad1ac29802dc4dcb180316c3c657a82029c7044b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95c22fca6a7286f3f1bb611658442f6938a07846298d80c713ce1d3de97e5f41405ea2cdc7163f3e53b990dd26ec12c1cb0d8191022378dfe8df45a50aaea067
|
|
7
|
+
data.tar.gz: 24a2a4bab3736f134cb7bd5b7062b9a4b3c9dbb409da369adcf11eb83c6b33da3a6668e187545bd61e35190843dd5e909865ce4178fa0fe0a5869e629fc9302c
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
require "rails/engine"
|
|
4
4
|
|
|
5
5
|
module ActiveadminTableFooter
|
|
6
|
+
# Empty engine — kept so Rails recognizes this gem as an engine on
|
|
7
|
+
# boot. Patches are applied eagerly from
|
|
8
|
+
# `lib/activeadmin_table_footer.rb` so they are in place before AA
|
|
9
|
+
# resources are loaded (even when consuming engines `require` admin
|
|
10
|
+
# files from an initializer).
|
|
6
11
|
class Engine < ::Rails::Engine
|
|
7
|
-
config.to_prepare do
|
|
8
|
-
require "activeadmin_table_footer/table_for_extension"
|
|
9
|
-
require "activeadmin_table_footer/index_as_table_extension"
|
|
10
|
-
|
|
11
|
-
ActiveAdmin::Views::TableFor.prepend(ActiveadminTableFooter::TableForExtension)
|
|
12
|
-
ActiveAdmin::Views::IndexAsTable.prepend(ActiveadminTableFooter::IndexAsTableExtension)
|
|
13
|
-
end
|
|
14
12
|
end
|
|
15
13
|
end
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# Load ActiveAdmin first so `ActiveAdmin::Views::TableFor` and
|
|
4
|
+
# `IndexAsTable` exist by the time we prepend onto them. AA doesn't
|
|
5
|
+
# publish a load hook for itself (only `:active_admin_controller`), and
|
|
6
|
+
# `config.to_prepare` would fire too late for engines that require AA
|
|
7
|
+
# resources from an initializer. Sibling plugins (active_admin_sidebar,
|
|
8
|
+
# etc.) use the same pattern.
|
|
9
|
+
require "activeadmin"
|
|
3
10
|
require "activeadmin_table_footer/version"
|
|
4
11
|
require "activeadmin_table_footer/styles"
|
|
5
12
|
|
|
@@ -22,3 +29,8 @@ module ActiveadminTableFooter
|
|
|
22
29
|
end
|
|
23
30
|
|
|
24
31
|
require "activeadmin_table_footer/engine" if defined?(Rails)
|
|
32
|
+
require "activeadmin_table_footer/table_for_extension"
|
|
33
|
+
require "activeadmin_table_footer/index_as_table_extension"
|
|
34
|
+
|
|
35
|
+
ActiveAdmin::Views::TableFor.prepend(ActiveadminTableFooter::TableForExtension)
|
|
36
|
+
ActiveAdmin::Views::IndexAsTable.prepend(ActiveadminTableFooter::IndexAsTableExtension)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin_table_footer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Igor Fedoronchuk
|
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
- !ruby/object:Gem::Version
|
|
101
101
|
version: '0'
|
|
102
102
|
requirements: []
|
|
103
|
-
rubygems_version: 3.
|
|
103
|
+
rubygems_version: 3.6.9
|
|
104
104
|
specification_version: 4
|
|
105
105
|
summary: Table footer DSL for ActiveAdmin index tables
|
|
106
106
|
test_files: []
|