Merge pull request #800 from openHPI/rails_admin_disable_dashboard

disable rails_admin dashboard
This commit is contained in:
Sebastian Serth
2020-12-01 16:28:38 +01:00
committed by GitHub

View File

@ -30,8 +30,11 @@ RailsAdmin.config do |config|
# config.show_gravatar = true # config.show_gravatar = true
config.actions do config.actions do
dashboard # mandatory # mandatory
index # mandatory dashboard do
statistics false
end
index # mandatory
new new
export export
bulk_delete bulk_delete
@ -50,10 +53,21 @@ RailsAdmin.config do |config|
module WillPaginate module WillPaginate
module ActiveRecord module ActiveRecord
module RelationMethods module RelationMethods
def per(value = nil) per_page(value) end def per(value = nil)
def total_count() count end per_page(value)
def first_page?() self == first end end
def last_page?() self == last end
def total_count()
count
end
def first_page?()
self == first
end
def last_page?()
self == last
end
end end
end end
module CollectionMethods module CollectionMethods