Class: Pageflow::Admin::EntryUserBadgeList

Inherits:
ViewComponent
  • Object
show all
Defined in:
app/views/components/pageflow/admin/entry_user_badge_list.rb

Overview

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

#build(entry) ⇒ Object

Since:

  • 12.2



6
7
8
9
10
11
12
# File 'app/views/components/pageflow/admin/entry_user_badge_list.rb', line 6

def build(entry)
  ul class: 'badge_list' do
    entry.memberships.each do |membership|
      build_badge(membership)
    end
  end
end