Class: SolidusAdmin::Orders::Show::Email::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::Orders::Show::Email::Component
- Defined in:
- app/components/solidus_admin/orders/show/email/component.rb
Instance Method Summary collapse
- #form_id ⇒ Object
-
#initialize(order:) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(order:) ⇒ Component
Returns a new instance of Component.
4 5 6 |
# File 'app/components/solidus_admin/orders/show/email/component.rb', line 4 def initialize(order:) @order = order end |
Instance Method Details
#form_id ⇒ Object
8 9 10 |
# File 'app/components/solidus_admin/orders/show/email/component.rb', line 8 def form_id dom_id(@order, "#{stimulus_id}_email_form") end |