internetee-registry/app/controllers/admin_controller.rb
2014-09-25 16:37:36 +03:00

7 lines
172 B
Ruby

class AdminController < ApplicationController
before_action :verify_admin
def verify_admin
redirect_to client_root_path unless current_user.try(:admin?)
end
end