Class: AhoyCaptain::Filters::Pages::EntryPagesController

Inherits:
BaseController show all
Defined in:
app/controllers/ahoy_captain/filters/pages/entry_pages_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/entry_pages_controller.rb', line 5

def index
  query = event_query.all.distinct("entry_pages.url").select("entry_pages.url as url")

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