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:
parent
4adfd10398
commit
ab903b92f4
|
@ -10,6 +10,8 @@ module Ransack
|
|||
ActiveRecordAdapter.new
|
||||
elsif defined?(::Mongoid)
|
||||
MongoidAdapter.new
|
||||
else
|
||||
raise "Unsupported adapter"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue