Class: Blazer::Api::QueriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Blazer::Api::QueriesController
- Defined in:
- app/controllers/blazer/api/queries_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#show ⇒ Object
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 |