Remove schulden for admins as this has been moved to a seperate application

This commit is contained in:
benji 2015-09-01 18:15:27 +02:00
parent 28ec934e0a
commit b7c292275b
3 changed files with 0 additions and 16 deletions

View file

@ -1,14 +0,0 @@
require 'csv'
class AdminsController < ApplicationController
def schulden
authorize! :schulden, :admins
@users = User.members
respond_to do |format|
format.csv do
headers['Content-Disposition'] = "attachment; filename=\"zeus-schulden\""
headers['Content-Type'] ||= 'text/csv'
end
end
end
end

View file

@ -46,7 +46,6 @@
<li><%= link_to "List" , users_path %></li>
</ul>
</li>
<li><%= link_to 'Download schulden', admins_schulden_path(format: :csv) %></li>
<% end %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Logged in as <%= current_user.nickname %> <b class="caret"></b></a>

View file

@ -32,6 +32,5 @@ Rails.application.routes.draw do
end
end
get 'admins' => 'admins#schulden', as: "admins_schulden"
get 'overview' => 'orders#overview', as: "orders"
end