Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

samvincent
Copy link
Contributor

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

…rd 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? }
@macfanatic
Copy link
Contributor

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

gregbell added a commit that referenced this pull request Oct 21, 2011
…hboard-sections

Issue #185 - Add support for conditionally display Dashboard sections at
@gregbell gregbell merged commit 21e3ada into activeadmin:master Oct 21, 2011
@gregbell
Copy link
Contributor

Thanks Sam!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants