Sha256: 9155064cb4294603b5f3fc6371aa178706f1d1259c8355d85fc39f75a8b46425
Contents?: true
Size: 331 Bytes
Versions: 4
Compression:
Stored size: 331 Bytes
Contents
module Adhoq class PreviewsController < ApplicationController layout false def create begin @result = Adhoq::Executor.new(params[:query]).execute rescue ActiveRecord::StatementInvalid => @statement_invalid render 'statement_invalid', status: :unprocessable_entity end end end end
Version data entries
4 entries across 4 versions & 1 rubygems