1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00

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

View file

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