Class: Pageflow::Admin::UserAccountBadgeList
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::UserAccountBadgeList
- Defined in:
- app/views/components/pageflow/admin/user_account_badge_list.rb
Overview
Instance Method Summary collapse
Instance Method Details
#build(user) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/views/components/pageflow/admin/user_account_badge_list.rb', line 6 def build(user) ul class: 'badge_list' do user.account_memberships.each do |membership| if (:see_badge_belonging_to, membership.entity) build_badge(membership) end end build_admin_badge if user.admin? end end |