Module: ApplicantsHelper

Defined in:
app/helpers/applicants_helper.rb

Instance Method Summary collapse

Instance Method Details

#answer_input_options(answer) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/applicants_helper.rb', line 2

def answer_input_options(answer)
  options = {}

  if answer.answer_type == 'text'
    options[:rows] = 6
  end

  if answer.character_limit?
    options[:maxlength] = answer.character_limit
  end

  options
end