Remove redirection

This commit is contained in:
Artur Beljajev 2018-06-20 12:21:44 +03:00
parent 9684c8e59f
commit fa9731be16

View file

@ -3,11 +3,6 @@ class Registrar
authorize_resource class: false
def show
if can?(:show, :poll)
redirect_to registrar_poll_url and return
elsif can?(:show, Invoice)
redirect_to registrar_invoices_url and return
end
end
end
end
end