Class: Pageflow::Admin::FeaturesTab Private
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::FeaturesTab
- Defined in:
- app/views/components/pageflow/admin/features_tab.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #build(resource) ⇒ Object private
Instance Method Details
#build(resource) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 8 |
# File 'app/views/components/pageflow/admin/features_tab.rb', line 5 def build(resource) feature_target = resource.is_a?(Site) ? resource.account : resource render('admin/features/form', resource: feature_target) end |