activeadmin_calendar 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 +4 -4
- data/lib/activeadmin_calendar/engine.rb +4 -3
- data/lib/activeadmin_calendar/version.rb +1 -1
- data/lib/activeadmin_calendar.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 144f80c3b66f505d2af3a8fc4865861e987df94c341af143565b87d072f2b53b
|
|
4
|
+
data.tar.gz: 9be5e97c6acddd38a7582ad2bd78c47d1130eb10497263e3ce0c4c29dd06332e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9c5dce49245720956689566528eb7f2e446df9b7febe1143a64339c6df83c4eb9132d94c179f88552054dfc27b12c8dec5aeca1dfe8bb731b77c7d19559eb45
|
|
7
|
+
data.tar.gz: fa6acf5f2fd01a87714ea297c24d4ab360bc1297f1f9fefbd5d2d39590d4ba05c4078f8b51206298d495e2f6631c2c03bd183ccc42548a47c022cd90dac118d2
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
require "rails/engine"
|
|
4
4
|
|
|
5
5
|
module ActiveadminCalendar
|
|
6
|
+
# Empty engine — kept so Propshaft / Tailwind can discover this gem's
|
|
7
|
+
# `app/assets/stylesheets` directory on AA 4. The view component
|
|
8
|
+
# itself is required eagerly from `lib/activeadmin_calendar.rb` so it
|
|
9
|
+
# is available before AA resources are loaded.
|
|
6
10
|
class Engine < ::Rails::Engine
|
|
7
|
-
config.to_prepare do
|
|
8
|
-
require "activeadmin_calendar/index_as_calendar"
|
|
9
|
-
end
|
|
10
11
|
end
|
|
11
12
|
end
|
data/lib/activeadmin_calendar.rb
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# Load ActiveAdmin first so `ActiveAdmin::Views` exists by the time we
|
|
4
|
+
# register the view component. AA doesn't publish a load hook for itself
|
|
5
|
+
# (only `:active_admin_controller`), and `config.to_prepare` would fire
|
|
6
|
+
# too late for engines that require AA resources from an initializer.
|
|
7
|
+
# Sibling plugins (active_admin_sidebar, etc.) use the same pattern.
|
|
8
|
+
require "activeadmin"
|
|
3
9
|
require "activeadmin_calendar/version"
|
|
4
10
|
|
|
5
11
|
module ActiveadminCalendar
|
|
6
12
|
end
|
|
7
13
|
|
|
8
14
|
require "activeadmin_calendar/engine" if defined?(Rails)
|
|
15
|
+
require "activeadmin_calendar/index_as_calendar"
|