Skip to content

Commit 5066bbb

Browse files
author
Lukas Hodel
committed
Change auto_sort default to true
1 parent e176c6c commit 5066bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/globalize3/form_builder_extension.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module FormBuilderExtension
66
def translated_inputs(name = "Translations", options = {}, &block)
77
options.symbolize_keys!
88
switch_locale = options.fetch(:switch_locale, false)
9-
auto_sort = options.fetch(:auto_sort, :false)
9+
auto_sort = options.fetch(:auto_sort, true)
1010
form_buffers.last << template.content_tag(:div, class: "activeadmin-translations") do
1111
template.content_tag(:ul, class: "available-locales") do
1212
(auto_sort ? I18n.available_locales.sort : I18n.available_locales).map do |locale|

0 commit comments

Comments
 (0)