module JunglePath::API::Helpers::Rescues
Public Class Methods
handle_not_found(e)
click to toggle source
# File lib/jungle_path/api/helpers/rescues.rb, line 7 def self.handle_not_found(e) response = {error_code: 404, error_message: e.message}.to_json log response Rack::Response.new(response, 404).finish end