Class: ActionView::Helpers::InstanceTag

Inherits:
Object
  • Object
show all
Defined in:
lib/localized_language_select.rb

Instance Method Summary collapse

Instance Method Details

#to_localized_language_select_tag(priority_languages, options, html_options) ⇒ Object



97
98
99
100
101
102
103
104
105
106
107
# File 'lib/localized_language_select.rb', line 97

def to_localized_language_select_tag(priority_languages, options, html_options)
  html_options = html_options.stringify_keys
  add_default_name_and_id(html_options)
  value = value(object)
  ("select",
    add_options(
      localized_language_options_for_select(value, priority_languages, options),
      options, value
    ), html_options
  )
end