Class: FormSubmissionDataDecorator
- Inherits:
-
ApplicationDecorator
- Object
- Draper::Decorator
- ApplicationDecorator
- FormSubmissionDataDecorator
- Defined in:
- app/decorators/form_submission_data_decorator.rb
Instance Method Summary collapse
Methods inherited from ApplicationDecorator
Instance Method Details
#label ⇒ Object
4 5 6 7 8 |
# File 'app/decorators/form_submission_data_decorator.rb', line 4 def label field = form_submission.form.fields.find_by(identifier: name) return field.label if field && field.label.present? name end |