Class: Pageflow::Admin::FeaturesTab
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::FeaturesTab
- Defined in:
- app/views/components/pageflow/admin/features_tab.rb
Overview
Instance Method Summary collapse
Instance Method Details
#build(resource) ⇒ Object
4 5 6 7 |
# File 'app/views/components/pageflow/admin/features_tab.rb', line 4 def build(resource) feature_target = resource.is_a?(Site) ? resource.account : resource render('admin/features/form', resource: feature_target) end |