clair_app/app/controllers/admin/blocks_controller.rb
Nicolas Bally c2f8ec2efb initial
2020-10-10 00:28:38 +02:00

29 lines
378 B
Ruby

# -*- encoding : utf-8 -*-
class Admin::BlocksController < ApplicationController
before_action :authenticate_admin!
layout "admin"
def edit
@block = Block.find(params[:id])
if request.xhr?
render :layout => false
end
end
def show
@block = Block.find(params[:id])
if request.xhr?
render :layout => false
end
end
end