Exception: Tabulatr::UnexpectedSearchResultError
- Inherits:
-
StandardError
- Object
- StandardError
- Tabulatr::UnexpectedSearchResultError
- Defined in:
- lib/tabulatr/utility/unexpected_search_result_error.rb
Class Method Summary collapse
Class Method Details
.raise_error(klass) ⇒ Object
4 5 6 7 |
# File 'lib/tabulatr/utility/unexpected_search_result_error.rb', line 4 def self.raise_error(klass) raise self, "Your search block returned a '#{klass}'.\n You need to return a String, a Hash, an Array or an ActiveRecord::Relation instead." end |