Class: AhoyCaptain::Filters::Properties::NamesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- AhoyCaptain::Filters::Properties::NamesController
- Defined in:
- app/controllers/ahoy_captain/filters/properties/names_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 |
# File 'app/controllers/ahoy_captain/filters/properties/names_controller.rb', line 5 def index render json: ::Ahoy::Event.select("jsonb_object_keys(properties) as keys").distinct("jsonb_object_keys(properties)").map(&:keys).map { |key| serialize(key) } end |