Class: AhoyCaptain::Filters::Pages::ActionsController

Inherits:
BaseController show all
Defined in:
app/controllers/ahoy_captain/filters/pages/actions_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#period

Methods included from Rangeable

#period

Methods included from CompareMode

#compare_mode?, #comparison_mode, included

Instance Method Details

#indexObject



5
6
7
8
9
# File 'app/controllers/ahoy_captain/filters/pages/actions_controller.rb', line 5

def index
  query = event_query.all.with_url.distinct_url

  render json: query.map { |row| serialize(row.url) }
end