Module: Hyrax::ContactFormHelper

Included in:
HyraxHelperBehavior
Defined in:
app/helpers/hyrax/contact_form_helper.rb

Overview

Helpers for displaying Hyrax’s default contact form.

Instance Method Summary collapse

Instance Method Details

#contact_form_issue_type_optionsArray<String>

Note:

this helper should always provide i18nized values.

Provides the “issue type” options for the contact form dropdown. The response should be compatible with ActionView’s ‘options_for_select` helper.



19
20
21
# File 'app/helpers/hyrax/contact_form_helper.rb', line 19

def contact_form_issue_type_options
  Hyrax::ContactForm.issue_types_for_locale.dup
end