Remove ActiveAdmin as it's not really working that well with Rails 4 and we still don't really use it.

This commit is contained in:
Señor Rolando 2013-11-01 23:25:05 +01:00
parent e66ea5a201
commit a63163ca85
7 changed files with 0 additions and 292 deletions

View file

@ -1,9 +0,0 @@
ActiveAdmin.register Contact do
scope :unreleased
index do
column :firstname
column :lastname
default_actions
end
end

View file

@ -1,53 +0,0 @@
ActiveAdmin::Dashboards.build do
# Define your dashboard sections here. Each block will be
# rendered on the dashboard in the context of the view. So just
# return the content which you would like to display.
# == Simple Dashboard Section
# Here is an example of a simple dashboard section
#
# section "Recent Posts" do
# ul do
# Post.recent(5).collect do |post|
# li link_to(post.title, admin_post_path(post))
# end
# end
# end
# == Render Partial Section
# The block is rendered within the context of the view, so you can
# easily render a partial rather than build content in ruby.
#
# section "Recent Posts" do
# div do
# render 'recent_posts' # => this will render /app/views/admin/dashboard/_recent_posts.html.erb
# end
# end
section "Recent Contacts" do
table_for Contact.order("created_at desc").limit(5) do
column :firstname
column :lastname
column :created_at
end
strong { link_to "View All Contacts", admin_contact_path }
end
# == Section Ordering
# The dashboard sections are ordered by a given priority from top left to
# bottom right. The default priority is 10. By giving a section numerically lower
# priority it will be sorted higher. For example:
#
# section "Recent Posts", :priority => 10
# section "Recent User", :priority => 1
#
# Will render the "Recent Users" then the "Recent Posts" sections on the dashboard.
# == Conditionally Display
# Provide a method name or Proc object to conditionally render a section at run time.
#
# section "Membership Summary", :if => :memberships_enabled?
# section "Membership Summary", :if => Proc.new { current_admin_user.account.memberships.any? }
end