Exception: Thredded::Errors::EmptySearchResults
- Inherits:
-
Thredded::Error
- Object
- StandardError
- Thredded::Error
- Thredded::Errors::EmptySearchResults
- Defined in:
- lib/thredded/errors.rb
Instance Method Summary collapse
-
#initialize(query) ⇒ EmptySearchResults
constructor
A new instance of EmptySearchResults.
- #message ⇒ Object
Constructor Details
#initialize(query) ⇒ EmptySearchResults
Returns a new instance of EmptySearchResults.
58 59 60 |
# File 'lib/thredded/errors.rb', line 58 def initialize(query) @query = query end |
Instance Method Details
#message ⇒ Object
62 63 64 |
# File 'lib/thredded/errors.rb', line 62 def "There are no results for your search - '#{@query}'" end |