File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,8 @@ def viable_models
378
378
end
379
379
end
380
380
end . flatten . reject { |m | m . starts_with? ( 'Concerns::' ) } # rubocop:disable Style/MultilineBlockChain
381
+
382
+ @@system_models + @registry . keys . collect ( &:to_s )
381
383
end
382
384
end
383
385
Original file line number Diff line number Diff line change @@ -264,6 +264,14 @@ class RecursivelyEmbedsMany
264
264
it 'includes models in the directory added by config.eager_load_paths' do
265
265
expect ( RailsAdmin ::Config . models_pool ) . to include ( 'Basketball' )
266
266
end
267
+
268
+ it 'should include a model which was configured explicitly' do
269
+ RailsAdmin ::Config . model 'PaperTrail::Version' do
270
+ visible false
271
+ end
272
+
273
+ expect ( RailsAdmin ::Config . models_pool ) . to include ( 'PaperTrail::Version' )
274
+ end
267
275
end
268
276
269
277
describe '.parent_controller' do
You can’t perform that action at this time.
0 commit comments