Sha256: a6d8c8d30477d53bbf7242d9442e1106ae45baa874a8aa9f15e19a9f6e5fce43
Contents?: true
Size: 328 Bytes
Versions: 1
Compression:
Stored size: 328 Bytes
Contents
require "sinatra/base" module Monocle class Server < Sinatra::Base post "/:type/:id" do begin params[:type].classify.constantize.find(params[:id]).view! ActiveRecord::Base.clear_active_connections! "o_0 +1" rescue ActiveRecord::RecordNotFound "o_0" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
monocle-0.0.1 | lib/monocle/server.rb |