Sha256: e36e8df659bac86aedb588283bc1ba0dd5e3bf10908910268f5d8786b1d6e0f2
Contents?: true
Size: 377 Bytes
Versions: 159
Compression:
Stored size: 377 Bytes
Contents
module MockWebapp # Mock controller. # @appmap class Controller @controller = nil class << self # Singleton factory method. # # @appmap def instance @controller ||= Controller.new end end # @appmap def process(request) id = request.params[:id] user = User.find(id) user.to_h end end end
Version data entries
159 entries across 159 versions & 1 rubygems