Class: Pageflow::Admin::MembershipRoleWithTooltip

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

Overview

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

#build(role, options = {}) ⇒ Object

Since:

  • 12.2



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

def build(role, options = {})
  span t(role, scope: 'activerecord.values.pageflow/membership.role'),
  class: "membership_role #{role} tooltip_clue" do
    div t(role, scope: tooltip_scope(options)),
    class: 'tooltip_bubble'
  end
end