Merge pull request #800 from openHPI/rails_admin_disable_dashboard
disable rails_admin dashboard
This commit is contained in:
@ -30,7 +30,10 @@ RailsAdmin.config do |config|
|
||||
# config.show_gravatar = true
|
||||
|
||||
config.actions do
|
||||
dashboard # mandatory
|
||||
# mandatory
|
||||
dashboard do
|
||||
statistics false
|
||||
end
|
||||
index # mandatory
|
||||
new
|
||||
export
|
||||
@ -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
|
||||
|
Reference in New Issue
Block a user