internetee-registry/app/controllers/client_controller.rb
2014-09-26 17:32:57 +03:00

8 lines
230 B
Ruby

class ClientController < ApplicationController
helper_method :current_registrar
def current_registrar
return Registrar.find(session[:current_user_registrar_id]) if current_user.admin?
current_user.registrar
end
end