Class: Blazer::Api::QueriesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/blazer/api/queries_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate

Instance Method Details

#showObject



4
5
6
7
8
9
10
# File 'app/controllers/blazer/api/queries_controller.rb', line 4

def show
  hashes = Blazer::Api.configuration.db[
    Blazer::Query.find(params[:id]).statement
  ].all

  render json: JSON.generate(hashes)
end