Sha256: 9a32a5a6f5321a4286bc494f7440f8c6e82fd0cd9323e3e409e225eb3be78265

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

# encoding: utf-8
class MenuItemsController < NestedTreesController

  before_filter :authenticate_lolita_user!
  
  def index
    super
  end
  
  def autocomplete_menu_item_url
    authorization_proxy.authorize!(:read, Menu)
    urls = Lolita::Menu::Autocomplete::Collector.new(params[:term])
    render :json => urls.to_json
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolita-menu-0.4.2 app/controllers/menu_items_controller.rb
lolita-menu-0.4.1 app/controllers/menu_items_controller.rb
lolita-menu-0.4.0 app/controllers/menu_items_controller.rb