Method: Olivander::ApplicationHelper#resource_attributes
- Defined in:
- app/helpers/olivander/application_helper.rb
#resource_attributes(resource, effective_resource) ⇒ Object
128 129 130 131 132 133 |
# File 'app/helpers/olivander/application_helper.rb', line 128 def resource_attributes(resource, effective_resource) er_attributes = effective_resource&.model_attributes&.collect { |x| x[0] } return er_attributes if er_attributes.present? && er_attributes.size.positive? resource.auto_form_attributes end |