Skip to content

Commit 2a00e4e

Browse files
committed
Fix broken 'active_admin' loading when ActiveRecord wasn't specified
1 parent 5893605 commit 2a00e4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/spec_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020

2121
# Ensure the Active Admin load path is happy
2222
require 'rails'
23+
2324
require 'active_model'
25+
26+
# require ActiveRecord to ensure that Ransack loads correctly
27+
require 'active_record'
28+
2429
require 'active_admin'
2530
ActiveAdmin.application.load_paths = [ENV['RAILS_ROOT'] + "/app/admin"]
2631

0 commit comments

Comments
 (0)