From f08fddf76701262095fcf630b0a252f926316fd4 Mon Sep 17 00:00:00 2001 From: Rodolfo Zitellini Date: Thu, 16 Jul 2015 10:46:01 +0200 Subject: [PATCH] Remove unused controller --- app/admin/administration.rb | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 app/admin/administration.rb diff --git a/app/admin/administration.rb b/app/admin/administration.rb deleted file mode 100644 index c47c9195a..000000000 --- a/app/admin/administration.rb +++ /dev/null @@ -1,35 +0,0 @@ -ActiveAdmin.register_page "Administration" do - menu :parent => "admin_menu", :if => proc{ can? :manage, :all } - - controller do - before_filter :my_filter - private - def my_filter - Administration.build_statistic - Administration.build_chart - end - end - - content do - panel "Current active users" do - table_for User.all.select{|user|user.online?} do - column :id - column :name - column :roles do |user| - user.roles.pluck(:name).join(", ").capitalize - end - column :updated_at - end - end - - panel "Logfile Errors" do - cmd='tail -n 10000 '+Rails.root.join('log', 'development.log').to_s+' | egrep -B 1 "Error"' - s=`#{cmd}` - text_node s.html_safe - end - - panel "Statistic" do - render 'index' - end - end -end