Class: ActionView::Helpers::InstanceTag

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

Instance Method Summary collapse

Instance Method Details

#to_language_select_tag(priority_languages, options, html_options) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/lola/helpers.rb', line 31

def to_language_select_tag(priority_languages, options, html_options)
  html_options = html_options.stringify_keys
  add_default_name_and_id(html_options)
  value = value(object)
  opts = add_options(language_options_for_select(value, *priority_languages), options, value)
  ("select", opts, html_options)
end