Sha256: 73240e014acec598b05c854d97641444ef32b4840979a2a033bafa6c7486ef08
Contents?: true
Size: 260 Bytes
Versions: 13
Compression:
Stored size: 260 Bytes
Contents
# frozen_string_literal: true prepend Respond, Rewrite, Actions respond.with_json rewrite.extract_prefix id: Integer do |request| fail! :not_found, message: "Could not find record" if @id == 1 end on 'show' do succeed! content: {id: @id, foo: 'bar'} end
Version data entries
13 entries across 13 versions & 1 rubygems