Skip to content

Commit

Permalink
Merge pull request #755 from timoschilling/patch-1
Browse files Browse the repository at this point in the history
raise exception for unsupported adapters
  • Loading branch information
scarroll32 authored Feb 7, 2018
2 parents 14f7f93 + ab903b9 commit 7dbec58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ransack/adapters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def self.instantiate_object_mapper
ActiveRecordAdapter.new
elsif defined?(::Mongoid)
MongoidAdapter.new
else
raise "Unsupported adapter"
end
end

Expand Down

0 comments on commit 7dbec58

Please sign in to comment.