Exception: PgSearch::Multisearch::ModelNotMultisearchable
- Inherits:
-
StandardError
- Object
- StandardError
- PgSearch::Multisearch::ModelNotMultisearchable
- Defined in:
- lib/pg_search/multisearch.rb
Instance Method Summary collapse
-
#initialize(model_class) ⇒ ModelNotMultisearchable
constructor
A new instance of ModelNotMultisearchable.
- #message ⇒ Object
Constructor Details
#initialize(model_class) ⇒ ModelNotMultisearchable
Returns a new instance of ModelNotMultisearchable.
25 26 27 28 |
# File 'lib/pg_search/multisearch.rb', line 25 def initialize(model_class) super @model_class = model_class end |
Instance Method Details
#message ⇒ Object
30 31 32 |
# File 'lib/pg_search/multisearch.rb', line 30 def "#{@model_class.name} is not multisearchable. See PgSearch::ClassMethods#multisearchable" end |