Class: Lookout::Filters::GoalsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- Lookout::Filters::GoalsController
- Defined in:
- app/controllers/lookout/filters/goals_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Methods included from Rangeable
Methods included from CompareMode
#compare_mode?, #comparison_mode, included
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/lookout/filters/goals_controller.rb', line 4 def index render json: Lookout.configuration.goals.map { |goal| { text: goal.title, value: goal.id } } end |