Class: SoqlDashboard::ReportsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SoqlDashboard::ReportsController
- Defined in:
- app/controllers/soql_dashboard/reports_controller.rb
Constant Summary collapse
- FALLBACK_OBJECTS =
%w[Account Contact Opportunity Lead Case User].freeze
Instance Method Summary collapse
Instance Method Details
#execute_query ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'app/controllers/soql_dashboard/reports_controller.rb', line 16 def execute_query return redirect_to root_path unless @integration @integrations = available_integrations @selected_integration = @integration @objects = integration_objects @soql_query = params[:soql_query] query_execution if @soql_query.present? render :index end |
#index ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/soql_dashboard/reports_controller.rb', line 9 def index @integrations = available_integrations @selected_integration = @integration @objects = integration_objects @query_result = nil end |