Sha256: d1cfc7995b4433f53a2080e9d53040c6c37e6d5279bc5113a9cd822f2f9ee960
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
module ThinRest module Resources class ResourceNotFound < Resource class << self def default_handler(env, name) new(env) end end property :name def get connection.send_head(404) connection.send_body(Representations::ResourceNotFound.new(:path_info => connection.rack_request.path_info).to_s) do raise RoutingError, "Invalid route: #{connection.rack_request.path_info} ; name: #{name}" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems