Class: Wallaby::ModelNotFound

Inherits:
NotFound
  • Object
show all
Defined in:
lib/errors/wallaby/model_not_found.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#messageString

Returns not found error message.

Returns:

  • (String)

    not found error message



6
7
8
9
10
# File 'lib/errors/wallaby/model_not_found.rb', line 6

def message
  return super if super.include? "\n"

  Locale.t 'errors.not_found.model', model: super
end