raise exception for unsupported adapters

The reason can be found here: https://github.com/activeadmin/activeadmin/issues/4756
The solution is from @deivid-rodriguez in: https://github.com/activeadmin/activeadmin/issues/4756#issuecomment-275505455
This commit is contained in:
Timo Schilling 2017-01-27 09:14:01 +01:00 committed by GitHub
parent 4adfd10398
commit ab903b92f4
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ module Ransack
ActiveRecordAdapter.new
elsif defined?(::Mongoid)
MongoidAdapter.new
else
raise "Unsupported adapter"
end
end