engine/app/controllers/admin/snippets_controller.rb

13 lines
231 B
Ruby
Raw Normal View History

module Admin
class SnippetsController < BaseController
sections 'settings'
respond_to :json, :only => :update
def index
@snippets = current_site.snippets.order_by([[:name, :asc]])
end
end
end