Class: Fe::StateChooser
- Inherits:
-
Question
- Object
- ActiveRecord::Base
- ApplicationRecord
- Element
- Question
- Fe::StateChooser
- Defined in:
- app/models/fe/state_chooser.rb
Instance Attribute Summary
Attributes inherited from Question
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Question
#check_answer_sheet_matches_set_response_answer_sheet, #default_label?, #delete_file, #display_response, #has_response?, #locked?, #response, #responses, #save_file, #save_response, #set_response, #validation_class
Methods inherited from Element
#all_elements, #conditional_answers, #conditional_match, #content, create_from_import, #css_classes, #duplicate, #export_hash, #export_to_yaml, #has_response?, #hidden?, #hidden_by_choice_field?, #hidden_by_conditional?, #label, #limit, #matches_filter, max_label_length, #page_id, #pages_on, #position, #previous_element, #ptemplate, #question?, #required?, #reuseable?, #set_conditional_element, #set_position, #tooltip, #update_any_previous_conditional_elements, #update_page_all_element_ids, #visibility_affecting_element_ids, #visibility_affecting_questions, #visible?
Instance Method Details
#choices(locale = nil, country = 'US') ⇒ Object
6 7 8 |
# File 'app/models/fe/state_chooser.rb', line 6 def choices(locale = nil, country = 'US') @states = _(Carmen.states(country)) end |