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:
parent
4adfd10398
commit
ab903b92f4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue