engine/app/controllers/admin/page_parts_controller.rb

16 lines
244 B
Ruby
Raw Normal View History

module Admin
class PagePartsController < BaseController
layout nil
respond_to :json
def index
parts = current_site.layouts.find(params[:layout_id]).parts
respond_with parts.collect(&:attributes)
end
end
end