Exception: Thredded::Errors::EmptySearchResults

Inherits:
Thredded::Error
  • Object
show all
Defined in:
lib/thredded/errors.rb

Instance Method Summary collapse

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 message
  "There are no results for your search - '#{@query}'"
end