disable rails_admin dashboard

This commit is contained in:
Karol
2020-11-28 12:41:23 +01:00
parent f64ef0dfad
commit 052bd9302f

View File

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