Class: Compass::MenuController

Inherits:
ApplicationController show all
Includes:
ConditionalCache, Cors
Defined in:
app/controllers/compass/menu_controller.rb

Overview

Menu controller.

Instance Method Summary collapse

Methods included from ConditionalCache

#with_cache

Methods included from Cors

#cors

Methods inherited from ApplicationController

#authenticate, #current_context, #current_context_id, #validate_context

Instance Method Details

#indexObject



12
13
14
15
16
# File 'app/controllers/compass/menu_controller.rb', line 12

def index
  with_cache(menu_items, Compass.config.menu.cache, etag: "compass-menu") do
    render json: menu_items, filter: filter
  end
end