Sha256: 912f1bb38fa0e04a8af028e4b8256f9d46c52f44fc928817187d4c28cab7d836
Contents?: true
Size: 376 Bytes
Versions: 14
Compression:
Stored size: 376 Bytes
Contents
module Api module V1 class DummyControllerError < StandardError; end class DummyController < OpenStax::Api::V1::ApiController rescue_from DummyControllerError do |e| render nothing: true, status: 500 end def dummy head(:ok) end def explode raise DummyControllerError, "kaboom" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems