lotus_admin 0.2.0 → 0.2.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/lotus_admin/engine.rb +7 -0
- data/lib/lotus_admin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6b69c602d90c872029671989901d6771007e479
|
|
4
|
+
data.tar.gz: d0b6f5d6119c5e5facc066d09125932f3e6a90bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b2f500cdb34e2f0168d189745e0456d1aef5c24af74ce68a6db60a53f3cfed8dfd0692fa3a33bf06518d4f299ce41aadb591092a198ce315fbcaad9c5580da1
|
|
7
|
+
data.tar.gz: cf753f92a31245c4de958d6703878430dbda3cf2dbadff1643aa601e7ea94bf6d37f632a79f04dec75681e01c5751bb4f4fafaa4608c7214e45273b76fbacd75
|
data/lib/lotus_admin/engine.rb
CHANGED
|
@@ -11,6 +11,13 @@ module LotusAdmin
|
|
|
11
11
|
Rails.application.config.assets.precompile += %w( lotus_admin/application.js lotus_admin/application.css )
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Let consumers make use of our factories
|
|
15
|
+
initializer 'lotus_admin.factory_bot_paths', after: 'factory_bot.set_factory_paths' do
|
|
16
|
+
if defined?(FactoryBot)
|
|
17
|
+
FactoryBot.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
14
21
|
initializer :append_migrations do |app|
|
|
15
22
|
# This prevents migrations from being loaded twice from the inside of the gem itself (dummy test app)
|
|
16
23
|
if app.root.to_s !~ /#{root}/
|
data/lib/lotus_admin/version.rb
CHANGED