Class: Pageflow::Admin::FeaturesTab Private

Inherits:
ViewComponent
  • Object
show all
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.

Since:

  • 12.2

Instance Method Summary collapse

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.

Since:

  • 12.2



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. : resource
  render('admin/features/form', resource: feature_target)
end