Module: Gris::ErrorHelpers
- Defined in:
- lib/gris/grape_extensions/error_helpers.rb
Instance Method Summary collapse
Instance Method Details
#error!(message, status, options = nil) ⇒ Object
3 4 5 6 |
# File 'lib/gris/grape_extensions/error_helpers.rb', line 3 def error!(, status, = nil) = { error: }.merge(.is_a?(String) ? { text: } : ) if throw :error, message: , status: status end |