mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
parent
77b24fdbd1
commit
5f69067d35
3 changed files with 10 additions and 2 deletions
|
@ -14,7 +14,7 @@ module FormHelper
|
|||
end
|
||||
|
||||
def language_select(object, method, choices = nil, options = {}, html_options = {}, &block)
|
||||
choices = options_for_select({ en: 'English', et: 'Estonian' }.invert, options[:selected])
|
||||
choices = options_for_select(available_languages, options[:selected])
|
||||
select(object, method, choices, options, html_options, &block)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue