engine/app/controllers/admin/page_parts_controller.rb

16 lines
244 B
Ruby

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