Sha256: facaca7ac41780a29b5258abff869cfb6c212fbc9d1cfeec6197884b7ac9f1c9
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
module Adhoq class ExplainsController < ApplicationController layout false def create begin @result = Adhoq::Executor.new(params[:query]).explain rescue ActiveRecord::StatementInvalid => @statement_invalid render 'statement_invalid', status: :unprocessable_entity end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adhoq-0.0.5 | app/controllers/adhoq/explains_controller.rb |
adhoq-0.0.4 | app/controllers/adhoq/explains_controller.rb |