Class: AhoyCaptain::Filters::Pages::ExitPagesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- AhoyCaptain::Filters::Pages::ExitPagesController
- Defined in:
- app/controllers/ahoy_captain/filters/pages/exit_pages_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
5 6 7 8 9 |
# File 'app/controllers/ahoy_captain/filters/pages/exit_pages_controller.rb', line 5 def index query = event_query.distinct("exit_pages.url").select("exit_pages.url as url") render json: query.map { |row| serialize(row.url) } end |