Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Issue #185 - Add support for conditionally display Dashboard sections at #551

Merged
merged 1 commit into from Oct 21, 2011

Conversation

Projects
None yet
3 participants
Contributor

samvincent commented Sep 30, 2011

Issue #185 - Add support for conditionally display Dashboard sections at run-time

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? }

@samvincent samvincent Issue #185 - Add support for conditionally display Dashboard sections…
… at run-time

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? }
e98a601
Contributor

macfanatic commented Oct 16, 2011

I would love to see this pull request pulled into the main trunk.

@gregbell gregbell added a commit that referenced this pull request Oct 21, 2011

@gregbell gregbell Merge pull request #551 from samvincent/185-conditionally-display-das…
…hboard-sections

Issue #185 - Add support for conditionally display Dashboard sections at
21e3ada

@gregbell gregbell merged commit 21e3ada into activeadmin:master Oct 21, 2011

Contributor

gregbell commented Oct 21, 2011

Thanks Sam!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment